$usr = array("127.0.0.1"); $ip = $_SERVER["REMOTE_ADDR"]; if(in_array($ip, $usr)){ echo 'doğru'; } else{ echo 'yanlış'; } ?>