From: Andrew Lorimer Date: Tue, 11 Dec 2018 06:21:51 +0000 (+1100) Subject: use pihole list for dns blocker X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/8c794bfc0b64af3959d1dbe9b22282f18a48ecae?ds=inline use pihole list for dns blocker --- diff --git a/update-blocklist.sh b/update-blocklist.sh index 7630cc3..5535f73 100644 --- a/update-blocklist.sh +++ b/update-blocklist.sh @@ -3,8 +3,8 @@ #! /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 -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