Place in your template’s index.php
the following piece of code:
$deny = array("127.0.0.1", "88.88.88.88");
if (in_array ($_SERVER['REMOTE_ADDR'], $deny))
{
header("Location: http://example.com");
die();
}
And just change the addresses of $deny
for the IP address or addresses you want to block.