<?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
this tutorial was made by someone on my staff.
Posted 03 May 2005 - 06:48 AM
<?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();
}
?>
0 members, 1 guests, 0 anonymous users