Skip to content Skip to sidebar Skip to footer

blocker user agent



tambahin file ini di include/block-ua.php
<?php 
$usragn = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/Mac OS/',$usragn)){

}

else if (preg_match('/iPhone/',$usragn)) {

}
else if (preg_match('/Macintosh/',$usragn)) {

}
else if (preg_match('/iPad/',$usragn)) {

}
else if (preg_match('/Android/',$usragn)) {

}

else {
header("location: /403.html");
exit();
}
?>

Post a Comment for "blocker user agent"

Image
Image
Image