Here put this in the page you wish to block the user to:
<?
$blockip = array("555.555.55.55");
$x = count($blockip);
for ($y = 0; $y < $x; $y++) {
if ($REMOTE_ADDR == $blockip[$y]) {
echo ("Site Down");
Exit;}
}
?>
Ok here you go,
You have 2 options into doing this. if you have only 1 page to block, just use the code above, if you have 2 do this
copy this code above with your new ip in it. name it something like banned.php than upload to your server. Now any page you want to protect just add this line to the page:
<?php include 'banned.php'; ?>
This will pull that file every time to check their IP. If their ip is not on that list it will just load the page.
echo ("Site Down");
You can put any text you wish by Site Down. So when the script runs and they are blocked it says that message. I find Site Down fitting because they think the site is down and have no clue they have been banned.
Now to save you some headache and time, you will ask "how do I add more than one?"
change it from: $blockip = array("555.555.55.55");
to: $blockip = array("555.555.55.55", "555.555.55.55", "555.555.55.55");
This should help you, i hope so.