Manual Experimental! - This uses a different process to block IPs (uses IPFW)
Enter in IP format (xx.xx.xx.xx) or CIDR format (xx.xx.xx.xx/xx)

1) { fwrite($fh, "\n"); } else { } fclose($fh); //echo (filesize($myFile)); if (filesize($myFile) > 1) { //$fh = fopen($myFile, 'r'); //$theData = fread($fh, filesize($myFile)); //fclose($fh); echo "
Current List(s):
"; // Get the whole file into a single string $fileContents = file_get_contents($myFile); // Explode the file contents string by each line $lines = explode(PHP_EOL, $fileContents); // Replace PHP_EOL with "\r\n" or "\n" or "\r" if you like // Iterate through each line and do what you need with it foreach ($lines as $line) { $i++; echo ""; echo " "; exec("kldload ipfw.ko"); exec("ipfw -q add 2000 drop ip from any to $line"); exec("ipfw -q add 2001 drop ip from $line to any"); echo $line; //echo ""; // echo $i; echo "
"; } } echo "

"; ?>