only allow sertain ip addresses php code example Example: php only my ip $myIp = ''; if ($_SERVER['REMOTE_ADDR'] == $myIp) { //do something }