Added possibility to add personal sources

This commit is contained in:
Geoffrey Frogeye 2019-11-11 11:19:46 +01:00
parent 333ae4eb66
commit a0a2af281f
11 changed files with 65 additions and 24 deletions

18
filter_subdomains.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Filter out the subdomains not pointing to a first-party tracker
cat subdomains/*.list | sort -u > temp/all_subdomains.list
./filter_subdomains.py temp/all_subdomains.list > temp/all_toblock.list
sort -u temp/all_toblock.list > dist/firstparty-trackers.txt
# Format the blocklist so it can be used as a hostlist
(
echo "# First-party trackers"
echo "# List generated on $(date -Isec) by eulaurarien $(git describe --tags --dirty)"
cat dist/firstparty-trackers.txt | while read host;
do
echo "0.0.0.0 $host"
done
) > dist/firstparty-trackers-hosts.txt