mirror of
https://github.com/outbackdingo/openwrt-builder.git
synced 2026-01-27 18:19:53 +00:00
Add alternative script for generating unbound block list
This commit is contained in:
21
openwrt-unbound-block-alt.sh
Executable file
21
openwrt-unbound-block-alt.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
git clone https://github.com/DNSCrypt/dnscrypt-proxy
|
||||
cd dnscrypt-proxy/utils/generate-domains-blocklist
|
||||
|
||||
cat << EOF > domains-blocklist.conf
|
||||
https://gitlab.com/quidsup/notrack-blocklists/-/raw/master/notrack-blocklist.txt
|
||||
https://gitlab.com/quidsup/notrack-blocklists/-/raw/master/notrack-malware.txt
|
||||
https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt
|
||||
EOF
|
||||
|
||||
echo 'googleadservices.com' >> domains-allowlist.txt
|
||||
echo "server:" > unbound_ext.conf
|
||||
|
||||
for domain in $(./generate-domains-blocklist.py | sed '/^$/d'| sed '/#/d'); do
|
||||
echo -e "\tlocal-zone: \"$domain.\" refuse";
|
||||
done >> unbound_ext.conf
|
||||
|
||||
cd -
|
||||
|
||||
# scp -O dnscrypt-proxy/utils/generate-domains-blocklist/unbound_ext.conf root@<your ip address>:/etc/unbound/unbound_ext.conf
|
||||
Reference in New Issue
Block a user