Ban IP address from pageSimply add this to any page that you wish that you want to block that ip address from. It will echo "Site Down" to the user who's ip address is banned.
This comes in helpful if you want to trick the user into thinking the site is up, but just down. Simply put <?php include 'banned.php';?> (or the name of what name your file would be in any page that you wish to block that ip.
// Array of banned IPs, modify it to your circumstances; the IPs are just examples.
$blocked_ips = array(
foreach ($blocked_ips as $blocked_ip)
if ($blocked_ip == $_SERVER['REMOTE_ADDR'])