$iptoblock = array("194.79.63.238", "194.79.63.238.alchevsk.net"); if (in_array ($_SERVER['REMOTE_ADDR'], $iptoblock)) { header("location: http://www.disneyland.com/"); exit(); }