use pihole list for dns blocker
authorAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:21:51 +0000 (17:21 +1100)
committerAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:21:51 +0000 (17:21 +1100)
update-blocklist.sh
index 7630cc306ce7f94c3c16715665438df524a3ae00..5535f73a158b943156a2ad170281122cda5d5da7 100644 (file)
@@ -3,8 +3,8 @@
 #! /bin/bash
 set -e
 
 #! /bin/bash
 set -e
 
-blacklist=http://www.squidblacklist.org/downloads/dg-ads.acl
+blacklist=https://v.firebog.net/hosts/Easylist.txt
 mkdir -p /tmp/dnsmasq-blocklist
 mkdir -p /tmp/dnsmasq-blocklist
-curl -s --max-filesize 20M -o  /tmp/dnsmasq-blocklist/sbl-dg-ads.hosts
-$blacklist
+curl -s --max-filesize 20M -o  /tmp/dnsmasq-blocklist/ads $blacklist
+sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads
 /etc/init.d/dnsmasq restart
 /etc/init.d/dnsmasq restart