$userip = 'the IP of the person'; if ($_SERVER['REMOTE_ADDR'] == $userip OR $_SERVER['HTTML_CLIENT_IP'] == $userip) { // this is the person's IP address, so go ahead and do what you want include_once('somehtmlpage.html'); die; }