netblue30 / fdns

Firejail DNS-over-HTTPS Proxy Server
GNU General Public License v3.0
121 stars 30 forks source link

blacklist for domain names #52

Open rusty-snake opened 3 years ago

rusty-snake commented 3 years ago

opposite of #35.

Examples:

$ fdns --blacklist=fonts.googleaps.com --blacklist-file=clownflare

But there are hosts-files, aren't there? Yes, but they don't allow blacklists per instances (#39), only global.

glitsj16 commented 3 years ago

Would be a nice feature indeed.

netblue30 commented 3 years ago

Not a big deal, try it out! I called it "--blocklist" so we don't get into trouble. It blocks a full domain, so for example if you say "--blocklist=domain.com" it will actually block *domain.com.

https://github.com/netblue30/fdns/commit/361868c5b9e9924df480e7e43d11c0c3e8548705