My follow-up PR will remove all subdomains for any given domain.tld because any subdomain will already be blocked if domain.tld has been blocked and there's no need (except for "marketing") to blow up this adlist.
This will reduce the size for the blocklist and improves performance and makes this list better maintainable π
"Explanation":
$ host pixel.ad
pixel.ad has address 0.0.0.0
pixel.ad has IPv6 address ::
host $(sha512sum README.md | awk '{print $1}'|cut -b12-40).pixel.ad
c88553a937ca37301f26773d67c42.pixel.ad has address 0.0.0.0
c88553a937ca37301f26773d67c42.pixel.ad has IPv6 address ::
I'm using this little script to check/remove subdomains for any given domain.tld:
#!/bin/bash
# ---
# remove subdomains when domain.tld is already given:
# ---
for domain in $(grep -P "[^.]+\.[a-zA-Z]{3}$|^.[^.]+\.[a-zA-Z]{2}\.[a-zA-Z]{2}$" \
docs/lists/ads-and-tracking-extended.txt | rev | cut -d"." -f1-2 | rev | sort -u | grep -vE "^0 "); do
# do not change if only one line is there:
echo $domain
[ "$(grep -c "$domain" docs/lists/ads-and-tracking-extended.txt)" = "1" ] && continue
# change:
sed -i "/\.$domain\$/d" docs/lists/ads-and-tracking-extended.txt
done
Currently running this very long running task and as an example this removes the following sudomains:
My follow-up PR will remove all subdomains for any given
domain.tld
because any subdomain will already be blocked ifdomain.tld
has been blocked and there's no need (except for "marketing") to blow up this adlist.This will reduce the size for the blocklist and improves performance and makes this list better maintainable π
"Explanation":
I'm using this little script to check/remove subdomains for any given domain.tld:
Currently running this very long running task and as an example this removes the following sudomains: