Initial commit

This commit is contained in:
Geoffrey Frogeye 2019-11-10 18:14:25 +01:00
commit 80b23e2d5c
7 changed files with 222 additions and 0 deletions

22
eulaurarien.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Main script for eulaurarien
# Get all subdomains accessed by each website in the website list
cat websites.list | ./collect_subdomains.py > subdomains.list
sort -u subdomains.list > subdomains.sorted.list
# Filter out the subdomains not pointing to a first-party tracker
cat subdomains.sorted.list | ./filter_subdomains.py > toblock.list
sort -u toblock.list > toblock.sorted.list
# Format the blocklist so it can be used as a hostlist
(
echo "# First party trackers"
echo "# List generated on $(date -Isec) by eulaurarian $(git describe --tags --dirty)"
cat toblock.sorted.list | while read host;
do
echo "0.0.0.0 $host"
done
) > toblock.hosts.list