PHP Ban IP Address
Ban IP Address
<?
$blockip = array("192.169.1.1");
$x = count($blockip);
for ($y=0; $y<$x; $y++) {
if ($REMOTE_ADDR == $blockip[$y]) {
echo ("Site Down");
Exit;
}
}
?>
<?
$blockip = array("192.169.1.1");
$x = count($blockip);
for ($y=0; $y<$x; $y++) {
if ($REMOTE_ADDR == $blockip[$y]) {
echo ("Site Down");
Exit;
}
}
?>