dns66
dns66 copied to clipboard
Allow domain patterns
We should allow stuff like **.example.com
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.