Created
February 24, 2014 16:18
-
-
Save jtadeulopes/9191394 to your computer and use it in GitHub Desktop.
Iptables rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo sh block.sh | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.yahoo.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.fcmrktplace.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.creafi-online-media.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ib.reachjunction.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "www.indeed.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ib.adnxs.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.tagjunction.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.globe7.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.clicksor.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.bharatstudent.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "webnewline.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ad.smxchange.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "lm.logicalmedia.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "ads.lzjl.com" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "media.fastclick.net" --algo kmp -j DROP | |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "cdn.fastclick.net" --algo kmp -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment