IngoZenz / personaldnsfilter

See http://www.zenz-solutions.de/personaldnsfilter for details
GNU General Public License v2.0
657 stars 56 forks source link

Feature request: regex blocks #36

Open ckuethe opened 5 years ago

ckuethe commented 5 years ago

Could you add regex blocking, like pihole has, eg. https://www.reddit.com/r/pihole/comments/blqd4u/why_am_i_still_seeing_ads_while_successfully/

Many AMP sites embed unwanted content from ^d-\d+[.]ampproject[.]net

IngoZenz commented 5 years ago

wouldn't blocking "*.ampproject.net" do the job? It would block more but will this be relevant?

ckuethe commented 5 years ago

Blocking *.ampproject.net would also block the desired content. Other patterns I'd like to block are ^track(er)?[.], ^(collector|analytics)\d*[.], ^ad(s|vertising)\d*[.],...

ckuethe commented 5 years ago

I meant to link this post which has a great list of patterns... https://www.reddit.com/r/pihole/comments/blqd4u/why_am_i_still_seeing_ads_while_successfully/emqltlb/

kowith337 commented 5 years ago

I have another reason to support regex block, especially if some Android browser (esp. Chrome and any forks that not patched properly) done this things.

You can see there are have some DNS names that not lookalike hosts or domain name patterns.

IngoZenz commented 5 years ago

This "random" DNS requests are for testing the DNS by chrome. Usually they doesn't hurt and can just be ignored in my opinion

kowith337 commented 5 years ago

Sorry for bumping, but unfortunately, I cannot find same behavior while using Bromite and Marmaduke's fork (that also apply patch from Bromite, too)

So personally, I'm still concern for those behavior.

IngoZenz commented 5 years ago

If you like you can discuss this behaviour in our tg chanel https://telegram.me/pdnsf

uservinu commented 4 years ago

This feature would be really help block xiaomi and other tracker apps, uploading data to their
aws servers. e.g.URL: data-mistat-intl-xiaomi.com-blablabla.amazonaws.com

IngoZenz commented 4 years ago

 

adding e.g. "data-mistat-intl-xiaomi.com-*.amazonaws.com" to additionalHosts should do the job...