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