Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow domain patterns #33

Open
julian-klode opened this issue Oct 27, 2016 · 5 comments
Open

Allow domain patterns #33

julian-klode opened this issue Oct 27, 2016 · 5 comments
Milestone

Comments

@julian-klode
Copy link
Owner

We should allow stuff like **.example.com

@drew-wallace
Copy link

You could match the adblock EasyList style for easy integration.

@aggsol
Copy link

aggsol commented May 4, 2017

How complex would that be? I would like to block whole TLDs and every hostname that starts with two or three digits.

@chiastic-security
Copy link

I'd really like to see this happen!

It would be a good USP for dns66 over adaway, because a hosts-based blocker just doesn't have the option of using wildcards. If you look at the adaway hosts file it's very repetitive, because it has to be.

@motfis
Copy link

motfis commented Jul 15, 2018

I would like to have this wildcard feature. Since nowadays, many webs use javascript to generate random domains for ads.

Liorst4 added a commit to Liorst4/dns66 that referenced this issue Mar 19, 2020
Liorst4 added a commit to Liorst4/dns66 that referenced this issue Mar 19, 2020
Liorst4 added a commit to Liorst4/dns66 that referenced this issue Mar 19, 2020
@julian-klode
Copy link
Owner Author

As said in #423, This requires implementing a double array trie with wildcard suffix support. It's hard and terrible.

Alternative implementations are easier, such as compiling each host file to a regular expression and then matching them in reverse order until we get a match, but I'm not sure relying on regular expressions is a sensible idea for long host lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants