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
| #!/bin/sh | |
| #Put in /etc/adblock.sh | |
| #Script to grab and sort a list of adservers and malware | |
| #Delete the old block.hosts to make room for the updates | |
| rm -f /etc/block.hosts | |
| #Download and process the files needed to make the lists (add more, if you want) | |
| wget -qO- http://www.mvps.org/winhelp2002/hosts.txt| sed 's/0.0.0.0/127.0.0.1/g' |grep "^127.0.0.1" > /tmp/block.build.list |