Sign inSign up

henrikwidlund/hostsparser

By henrikwidlund

•Updated about 9 hours ago

Tool that combines different sources into a AdBlock formatted file, optimized for AdGuard Home.

Image
0

10K+

henrikwidlund/hostsparser repository overview

Tool for producing an AdBlock formatted file from different sources. hosts and AdBlock based formats are supported for the sources and you can specify if the contents in the sources should be excluded or included in the result. It also removes duplicates, comments as well as hosts as well as hosts that would otherwise be blocked by a more general entry.

By default StevenBlack/hosts⁠ with fakenews, gambling and porn extensions⁠ is processed to exclude entries already covered by the AdGuard DNS Filter⁠ file⁠.

You can change the the sources used by the program by modifying appsettings.json in the image. Please see README.md⁠ for details.

⁠Using the image to produce a filter.txt

docker pull henrikwidlund/hostsparser \
    && docker create --name hostsparser henrikwidlund/hostsparser \
    && docker start hostsparser \
    && docker wait hostsparser \
    && docker cp hostsparser:/app/filter.txt . \
    && docker rm -f hostsparser

The filter.txt file will be put into the current directory.

Note The file the program produces can't be used as a regular hosts file, it must be used with a system that supports the AdBlock format.

⁠Source Repository

GitHub - HostsParser⁠

⁠License

GNU General Public License v3.0⁠

Tag summary

Content type

Image

Digest

sha256:4f53568b2…

Size

17 MB

Last updated

19 days ago

docker pull henrikwidlund/hostsparser