Added possibility to add personal sources
This commit is contained in:
parent
333ae4eb66
commit
a0a2af281f
11 changed files with 65 additions and 24 deletions
18
filter_subdomains.sh
Executable file
18
filter_subdomains.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue