Close a Php page by IP

If you need to only show a php page to a certain ip, a quick dirty way would be :

if ($_SERVER[‘REMOTE_ADDR’] != ‘82.76.167.52’)
{
exit();
}

Leave a Reply

Your email address will not be published. Required fields are marked *