Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

hosts file

more options

Both Firefox Private Network and Firefox DNS-over-HTTPS with cloudflare is bypassing the hosts file. All the address I block in the hosts file is getting through if I enable Private Network or DNS-over-HTTPS

Both Firefox Private Network and Firefox DNS-over-HTTPS with cloudflare is bypassing the hosts file. All the address I block in the hosts file is getting through if I enable Private Network or DNS-over-HTTPS

所有回复 (2)

more options

sounds like a bug, i contacted engineering and they said the same thing. I submitted it as a bug on github for the secure proxy.

more options

Are you using the Firefox Private Network add-on (Cloudflare), or are you in the beta of the Firefox Private Network VPN (Mullvad)?

With the built-in DNS-over-HTTPS ("DoH") feature, Firefox looks up addresses using a remote DNS service instead of using the Windows DNS service. Firefox never reads the hosts file directly. When you resolve DNS through Windows, Windows reports the addresses in the hosts file to applications. So as far as I know, it is completely normal that if you bypass Windows DNS then the hosts file is not used.

If you want to use DoH and a hosts file, I think you may need to wait until Microsoft adds DoH to the Windows DNS service (probably later this year, but I haven't seen a timeline since they announced their intention to add it last November). Or find a way to use it "upstream" from Windows, in your router or another one of your network devices.

Or you could switch to using an add-on for whatever purpose you are using your hosts file.