It's quite easy actually... heres the code :

CODE
<?php
//This retrieves the ip of the user
$ip=getenv('REMOTE_ADDR');
//Insert the user's IP here
$banned=xx.xx.xxx;
if (ereg($banned,$ip)) {
echo 'Banned';
exit();

}
?>


There you go victory.gif simple IP banning. Of course you can also change what it echo's in this case when the user with that IP comes to the site it will say Banned. You could fool them by saying like site is down but I prefer huge red letters smile.gif


this tutorial was made by someone on my staff.