-
Notifications
You must be signed in to change notification settings - Fork 200
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
Comments
You could match the adblock EasyList style for easy integration. |
How complex would that be? I would like to block whole TLDs and every hostname that starts with two or three digits. |
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. |
I would like to have this wildcard feature. Since nowadays, many webs use javascript to generate random domains for ads. |
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. |
We should allow stuff like **.example.com
The text was updated successfully, but these errors were encountered: