Commit e510368a authored by Shawn Webb's avatar Shawn Webb
Browse files

Add Blocklist.Site

Signed-off-by: Shawn Webb's avatarShawn Webb <>
parent 81fd86fa
#!/bin/sh -ex
blocklists="abuse ads fraud malware phishing ransomware scam tracking"
if [ "$(id -u)" -ne "0" ]; then
echo "[-] Must be run as root" 1>&2
exit 1
......@@ -7,13 +9,16 @@ fi
cd /data/repos/dns/Ultimate.Hosts.Blacklist
cd /data/repos/dns/Blocklist.Site
git pull
truncate -s 0 ${myzones}
grep '^0\.0\.0\.0' hosts/hosts0 > ${myzones}
grep '^0\.0\.0\.0' hosts/hosts1 >> ${myzones}
for l in ${blocklists}; do
if [ -f "${l}.txt" ]; then
grep '^0\.0\.0\.0' ${l}.txt >> ${myzones}
service unbound restart
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment