You could include an object in the template (<<object width="0" height="0" type="text/html" data="link to block script"></object>) and then make a php script that decided if the IP is blocked and then sends a header to the IP with a file in your site saying BLOCKED! or something of the sort
You could write the script like...
<?php
if($_SERVER['REMOTE_ADDR'] == "0.0.0.0"){ <-- replace 0.0.0.0 with IP to block
header('Location:
http://yourdomain.com/blocked.html'); <-- replace with blocked page
{
?>
You could be more specific and create a file of blocked IP's. I will write one if you ask