IngoZenz / personaldnsfilter

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

[Feature request] Add whitelisted mode #315

Open elyahw opened 2 months ago

elyahw commented 2 months ago

It would be very useful if the app had a whitelisted mode. Only the included addresses would be allowed, otherwise everything else is blocked.

Instead of blocking hundreds of thousands of domains, one could add a few hundred main ones he uses and have peace of mind. This whitelist would then grow with time. I found whitelisting the most effective kind of blocking.

realbiz21 commented 2 months ago

@elyahw this is already possible.

Modify the additional hosts file, and at the bottom, place a "*"

elyahw commented 2 months ago

Thanks. The only problem now is that what if I have some 20k websites to whitelist?

Is not it possible to put them in a list somewhere other than here?

slcw commented 2 months ago

To whitelist a host just go to "Configure Additional Hosts" and add the host with a preceding "!". For example...

!google.com !nextdns.io !amazon.com

You can also use wildcards in whitelist entries. For example...

!*.google.com

This will whitelist all hosts of the Google domain, but not google.com itself. So, if you want to whitelist google.com in addition to all sub-hosts, you need both entries. For example...

!google.com !*.google.com

twu2 commented 2 months ago

+1

The current whitelist mode need to edit additionalHosts.txt, can't update just like blacklist. It will be great if we can toggle the blacklist/whitelist mode in the filter settting, then it could be auto-refresh like blacklist hosts file.

ThatAnnoyingVegan commented 1 month ago

Yes, please.