' ; exit(); } fclose ($fd); //Cycle through all the IP Addresses in the file foreach($lines as $Spam) { if(in_array($_SERVER['REMOTE_ADDR'],$lines)) { // this is for exact matches echo '' ; exit(); } } }