1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash
#curl http://hosts-file.net/ad_servers.txt > /etc/blocked_hosts
#echo "
#" >> /etc/blocked_hosts
curl https://adaway.org/hosts.txt > /etc/blocked_hosts
echo "
" >> /etc/blocked_hosts
curl https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts >> /etc/blocked_hosts
echo "
" >> /etc/blocked_hosts
curl https://winhelp2002.mvps.org/hosts.txt >> /etc/blocked_hosts
systemctl restart dnsmasq