From 54b42211fc0374699328cfcfb401e9f26a2892eb Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Tue, 19 Nov 2024 23:08:34 +0100 Subject: [PATCH] Add and comment adguard tracking list --- openwrt-unbound-block.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openwrt-unbound-block.sh b/openwrt-unbound-block.sh index 87917aa..dd57bd7 100755 --- a/openwrt-unbound-block.sh +++ b/openwrt-unbound-block.sh @@ -19,6 +19,9 @@ curl -SL https://gitlab.com/quidsup/notrack-blocklists/-/raw/master/notrack-malw # EasyPrivacy curl -SL https://easylist.to/easylist/easyprivacy.txt | grep -E '^||' | grep -vE '@|---|!' | sed 's/||//g' >> "$TMP_FILE" +# Adguard Tracking Protection filter +# curl -SL https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt | grep -E '^\|\|' | sed 's/\^.*//g' | sed 's/||//g' | cut -f1 -d'/' | sort | uniq >> "$TMP_FILE" + echo "server:" > /etc/unbound/unbound_ext.conf # consider: grep -E '^[a-zA-Z0-9.]' sort -u "$TMP_FILE" | grep -E '^[a-zA-Z0-9]' | grep -vE '/|!|\^|\(|\)|#|\.$' | while read -r domain; do