initialer Commit

This commit is contained in:
Robin Kloppe 2023-07-21 23:37:00 +02:00
commit 32f20b70a4
4 changed files with 40 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
all-adblock.txt
header.txt
.htaccess
.htpasswd

16
adblocklists.txt Normal file
View file

@ -0,0 +1,16 @@
https://ublockorigin.pages.dev/filters/filters.txt
https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt
https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt
https://cdn.statically.io/gh/uBlockOrigin/uAssetsCDN/main/filters/quick-fixes.txt
https://cdn.statically.io/gh/uBlockOrigin/uAssetsCDN/main/filters/resource-abuse.txt
https://gitcdn.link/cdn/uBlockOrigin/uAssetsCDN/main/filters/unbreak.txt
https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt
https://easylist.to/easylist/easylist.txt
https://curbengh.github.io/malware-filter/urlhaus-filter-online.txt
https://easylist.to/easylist/easyprivacy.txt
https://filters.adtidy.org/extension/ublock/filters/14.txt
https://secure.fanboy.co.nz/fanboy-annoyance.txt
https://gitcdn.link/cdn/uBlockOrigin/uAssetsCDN/main/filters/annoyances.txt
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext
https://easylist.to/easylistgermany/easylistgermany.txt
https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt

19
create-adblock.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
cd /var/www/test.mainboarder.de/adblocker/
while read p; do
wget -qO - $p >> all-adblock.txt
done <adblocklists.txt
date=$(date '+%a, %d %b %Y %H:%M:%S %z')
sed 's/^!.*$//g' all-adblock.txt > allfilters.txt
echo '! Title: Mainboarder kompiliert
! Description: Filters optimized for uBlock, for single list use, deduplicated
! Expires: 2 days
! Last modified: '"$date"'
! Homepage: https://test.mainboarder.de/adblocker
!' > all-adblock.txt
cat header.txt >> all-adblock.txt
awk '!seen[$0]++' allfilters.txt >> all-adblock.txt
rm allfilters.txt

1
header.txt.template Normal file
View file

@ -0,0 +1 @@
#add own rules here