Skip to content

Instantly share code, notes, and snippets.

View djdeeles's full-sized avatar
🏠
Working from home

Çetin Ç. djdeeles

🏠
Working from home
View GitHub Profile
#!/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