This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox 76.0.1 seems to be ignoring the HOSTS file

  • 4 प्रत्युत्तर
  • 1 यह समस्या है
  • 144 views
  • के द्वारा अंतिम प्रतियुतर jscher2000 - Support Volunteer

more options

Windows 10, firefox 76.0.1

All of a sudden Firefox is serving up ads which used to be blocked by my HOSTS file.

Edge and Internet Explorer still seem to be using the HOSTS file OK.

Also, Firefox in a private window seems to use the HOSTS file.

I have deleted cookies and cache - no help.

Attached 3 screenshots, same site, banner Chevy ad with Firefox, hosts file blocks the Chevy ad in a Firefox private window and in Internet Explorer

Windows 10, firefox 76.0.1 All of a sudden Firefox is serving up ads which used to be blocked by my HOSTS file. Edge and Internet Explorer still seem to be using the HOSTS file OK. Also, Firefox in a private window seems to use the HOSTS file. I have deleted cookies and cache - no help. Attached 3 screenshots, same site, banner Chevy ad with Firefox, hosts file blocks the Chevy ad in a Firefox private window and in Internet Explorer
संलग्न स्क्रीनशॉट

चुने गए समाधान

islanderalmost said

But that begs the question: why does the private window not have the same problem ?

By default, Enhanced Tracking Protection settings are more stringent in private windows than regular windows. See: Enhanced Tracking Protection in Firefox for desktop.

Could that explain it?

संदर्भ में यह जवाब पढ़ें 👍 2

All Replies (4)

more options
  1. I think that the HOSTS file wasn't meant for ad blocking in Firefox. The usual way is to install an addon, for instance ublock origin.
  2. Probably it's because the DNS-over-HTTPS has been turned on. See Firefox DNS over HTTPS.
more options

Thanks for the info - yes, if I uncheck that box the ads go away.

But that begs the question: why does the private window not have the same problem ?

Also, I tried changing the HOSTS file entries from 0.0.0.0 to 127.0.0.1 - no help.

more options

Some reading:

  • Bug 1453207 - Enabling DNS over HTTPS should respect system hosts file

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

more options

चयनित समाधान

islanderalmost said

But that begs the question: why does the private window not have the same problem ?

By default, Enhanced Tracking Protection settings are more stringent in private windows than regular windows. See: Enhanced Tracking Protection in Firefox for desktop.

Could that explain it?

jscher2000 - Support Volunteer द्वारा सम्पादित