From 7ba42aa8f14fd2eb9e7e956ed7429591ab98ef91 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Mon, 6 Dec 2010 12:02:29 -0500 Subject: prep for major filestructure re-do --- config/ipblocklist/manual_add.tmp | 69 --------------------------------------- 1 file changed, 69 deletions(-) delete mode 100755 config/ipblocklist/manual_add.tmp (limited to 'config/ipblocklist/manual_add.tmp') diff --git a/config/ipblocklist/manual_add.tmp b/config/ipblocklist/manual_add.tmp deleted file mode 100755 index 361b782b..00000000 --- a/config/ipblocklist/manual_add.tmp +++ /dev/null @@ -1,69 +0,0 @@ - - - - -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 "

"; - - - - -?> -- cgit v1.2.3