$ip = ip2long($_SERVER["REMOTE_ADDR"]);if (($ip >= 1123631104 && $ip <= 1123639295)) { // what to do if in good IP range } else { // do something else or nothing at all echo "";}