<?
$blockip = array("192.169.1.1");
$x = count($blockip);

for ($y=0; $y<$x; $y++) {
	if ($REMOTE_ADDR == $blockip[$y]) {
		echo ("Site Down");
		Exit;
	}
}
?>
Published in: PHP
Download

Related snippets