RE: [PHP] How To Block A Certain Person Accessing Your Page! 02-21-2013, 02:47 AM
#4
Bit of a better script using arrays.
PHP Code:
<?PHP
$ip = $_SERVER['REMOTE_ADDR'];
$ips = array("1.1.1.1", "3.3.3.3");
if (in_array($ip, $ips)) {
die("Error");
}
?>