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