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:  Python and MySQL : Setup without root privilege and without installing rpms

Leave a Reply

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