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’] != ‘’)

Read Also:  Generate a file with random numbers in Python

Leave a Reply

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