Skip to content

[Feature Request] Support AdBlock style syntax as hosts lists in rules #1563

@nvandamme

Description

@nvandamme

Opensnitch is leveraging Hosts format lists, but it incurs many duplicates whenever subdomains are to be blocked as well.

A limited AdBlock style format support could be supported and handle wildcards blocking per domain and subdomains in a compact format without using regexp: https://github.com/AdguardTeam/Adguardhome/wiki/Hosts-Blocklists

# Hosts format
0.0.0.0 example.com
0.0.0.0 test.example.com
...

# AdBlock format
||example.com^

AdGuard Home is actually using this format subset via their own parser library (Go, GPL-3): https://github.com/AdguardTeam/urlfilter

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea whole new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions