php if ip address is code example Example: if ip is php if($_SERVER["REMOTE_ADDR"]=='111.111.111.111'){ //run only my ip }