Limit IP Addres Acces
To protect your web with preventing from special IP Addres .. Just use this code
<?
$userIP = $_SERVER[”REMOTE_ADDR”];
$IPAllowed = “127.0.0.1″;
if ($userIP!=$IPAllowed)
{
exit(”Restricted Area”);
}
echo “Allowed”;
?>
Tags: PHP, programming