Andrew's git
/
scripts.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
use pihole list for dns blocker
author
Andrew Lorimer
<andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:21:51 +0000
(17:21 +1100)
committer
Andrew Lorimer
<andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:21:51 +0000
(17:21 +1100)
update-blocklist.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
05a9d27
)
diff --git
a/update-blocklist.sh
b/update-blocklist.sh
index 7630cc306ce7f94c3c16715665438df524a3ae00..5535f73a158b943156a2ad170281122cda5d5da7 100644
(file)
--- a/
update-blocklist.sh
+++ b/
update-blocklist.sh
@@
-3,8
+3,8
@@
#! /bin/bash
set -e
#! /bin/bash
set -e
-blacklist=http
://www.squidblacklist.org/downloads/dg-ads.acl
+blacklist=http
s://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