dns66 icon indicating copy to clipboard operation
dns66 copied to clipboard

Allow domain patterns

Open julian-klode opened this issue 8 years ago • 5 comments

We should allow stuff like **.example.com

julian-klode avatar Oct 27 '16 17:10 julian-klode

You could match the adblock EasyList style for easy integration.

drew-wallace avatar May 04 '17 15:05 drew-wallace

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

aggsol avatar May 04 '17 15:05 aggsol

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.

chiastic-security avatar Aug 03 '17 08:08 chiastic-security

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

motfis avatar Jul 15 '18 02:07 motfis

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.

julian-klode avatar Jan 02 '21 16:01 julian-klode