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

Add Blocklist.Site


Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
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
myzones="/usr/local/etc/void-zones/my_void_hosts.txt"
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}
fi
done
/usr/local/bin/void-zones-update.sh
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