Скрипт для формирования файла hosts

sleep 7
URLS="http://hosts-file.net/ad_servers.txt \
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext \
http://adaway.org/hosts.txt \
https://cdn.rawgit.com/tarampampam/static/master/hosts/block_shit.txt \
https://cdn.rawgit.com/crazy-max/WindowsSpyBlocker/master/hostsBlockWindowsSpy.txt \
http://www.malwaredomainlist.com/hostslist/hosts.txt
http://goo.gl/cJHHzf \
http://someonewhocares.org/hosts/hosts \
http://hosts-file.net/ad_servers.txt \
http://winhelp2002.mvps.org/hosts.txt"
logger "Updating HOSTS-file..." && wget -T 10 -qO- $URLS | sed 's/\t/ /g' | sed 's/\r//' | sed 's/0.0.0.0/127.0.0.1/g' | grep "^127.0.0.1" | cut -d " " -f 1,2 | tr A-Z a-z | sort | uniq > /tmp/hosts && logger "HOSTS-file has been successfully updated."
sed -i '1d' /tmp/hosts
sed -i '/localhost/d' /tmp/hosts
sed -i '/127.0.0.1 l-stat.livejournal.net/d' /tmp/hosts
sed -i '/127.0.0.1 clck.yandex./d' /tmp/hosts
sed -i '/127.0.0.1 adv.gpm-digital.com/d' /tmp/hosts
sed -i '/127.0.0.1 c.allegrostatic.pl/d' /tmp/hosts
killall -SIGHUP dnsmasq

Похожее

Информация
Комментировать статьи на сайте возможно только в течении 30 дней со дня публикации.