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