A simple script. It restricts the access to your website.
PHP:
<?php
$ip = getenv('REMOTE_ADDR');
$blocked = "xx.xx.xx.xx"; // Replace the x's with the IP address.
if (ereg($blocked,$ip))
{
echo "You Have Been Banned. You cannot enter to website.";
exit();
}
?>