mirror of
https://github.com/alexsannikov/adguardhome-filters.git
synced 2025-02-19 20:00:04 +00:00
AdGuard Home filter lists converted from hosts files
extensions | ||
admalware.txt | ||
LICENSE | ||
README.md | ||
user-defined.txt |
adguardhome-filters
Hosts lists from Steven Black (https://github.com/StevenBlack/hosts)
Cleaned-up from "localhost" records.
127.0.0.1 replaced to 0.0.0.0
Extensions are left unmerged.
Files are used for AdGuard Home DNS filtering.
P.S. Looking for the way to translate easily multiple hostname records to one line accordingly to general AdBlock rules set, i.e.
www.abc.com
abc.com
external.www.abc.com.site
to
||abc.com*^
or similar.
Need to build the following algorithm:
- grab original file;
- mirror each string and sort ( like 'cat ./file1 | rev | sort > file2' );
- moving down, remember each string and compare it with all the rest, deleting all longer ones ( "moc.cba||" -> delete all "moc.cba.*" );
- revert strings back and sort;
- done.
Better to be written in bash/sed/awk or python or Go.