diff --git a/DROP-facebook b/DROP-facebook new file mode 100755 index 0000000..0013679 --- /dev/null +++ b/DROP-facebook @@ -0,0 +1,10 @@ +#!/bin/bash + +whois -h whois.radb.net -- '-i origin AS32934' | grep ^route: | \ + cut -f 2 -d ":" | sed -e 's/ //g' | sort -V > /tmp/facebook-ipv4.txt + +for i in `cat /tmp/facebook-ipv4.txt` + do echo "-A INPUT -p tcp -s $i -j DROP" +done > /tmp/facebook-ipv4-DROP.txt + +cat /tmp/facebook-ipv4-DROP.txt