Skip to content

Commit

Permalink
adding tld filters
Browse files Browse the repository at this point in the history
might explode
  • Loading branch information
NotaInutilis committed Oct 29, 2023
1 parent 008a1cf commit bc8ed99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions filters/adblock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
||gop^
||republican^
2 changes: 2 additions & 0 deletions filters/dnsmasq.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
address=/.gop/
address=/.republican/
2 changes: 2 additions & 0 deletions filters/ublock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*://*.gop/*
*://*.republican/*
5 changes: 3 additions & 2 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ python scripts/domains_to_hosts.py > hosts.txt
cp hosts.txt etc_hosts.txt # Previous filename for PiHole installations still subscribed to the old url.
python scripts/domains_to_hosts_ipv6.py > hosts.txt.ipv6
python scripts/domains_to_dnsmasq.py > dnsmasq.txt
cat ./filters/dnsmasq.txt >> dnsmasq.txt

## For browser extensions.
python scripts/domains_to_netsane.py > netsane.txt
python scripts/domains_to_adblock.py > adblock_temp.txt
cp ./headers/adblock.txt adblock.txt
cat adblock_temp.txt >> adblock.txt
cat adblock_temp.txt ./filters/adblock.txt >> adblock.txt
rm adblock_temp.txt
python scripts/domains_to_ublacklist.py > ublacklist_temp.txt
cp ./headers/adblock.txt ublacklist.txt # Currently using the same adblock header until uBlacklist implements its own header. https://github.com/iorate/ublacklist/issues/351
cat ublacklist_temp.txt >> ublacklist.txt
cat ublacklist_temp.txt ./filters/ublacklist.txt >> ublacklist.txt
rm ublacklist_temp.txt

0 comments on commit bc8ed99

Please sign in to comment.