# =============================================================================
# URL: https://ss64.com/osx/fc.html
# The ad at the bottom
# Computer: MacBook Pro OSX 10.13.4
# Browser: Firefox Quantum 59.0.2 (64-bit)
# Problem: /etc/hosts was not being observed by browser
# =============================================================================
So, I know this post is way old but, for me in "Firefox Quantum"
not being able to use the host
file was driving me NUTS, I'm way to OCD for this... lol, so before I canned Firefox, I Ran/Fell down the rabbit hole
After scouring thru the web looking for answers, reading blogs forums and potential answers everywhere, yet, still getting nowhere:
I had tried:
Reformatting my /etc/hosts
file
- Just incase this contained hidden characters
- Also, Tested host file formatting using:
- 1 space
- 4 spaces
- 1 tab
- This made no difference to
Chrome
, Safari
or Firefox
Also, Tried modifying Firefox's about:config
Changed
browser.fixup.dns_first_for_single_words
to True
network.dns.disablePrefetch
to True
network.dns.offline-localhost
to False
network.dnsCacheEntries
to 0
(ZERO)
network.dnsCacheExpiration
to 0
(ZERO)
network.dnsCacheExpirationGracePeriod
to 0
(ZERO)
and to no avail (I reverted all the above back to default)
# =============================================================================
# FINALLY, I found that you have to change 3 things
# =============================================================================
This hides the error'd out ad's instead of showing the iframe with the blocked content.
I'm so happy right now that I got this workin' I hope this helps someone!
Do you know how to use it instead of
/etc/hosts
? Because the manual doesn't seem to give even a little hint, and I couldn't find an examples about that./etc/hosts
can't supposed to be obsolete until the new one can execute it's functions. From manual I am doubt that it is. – Hi-Angel – 2014-09-30T13:56:28.8731/etc/host.conf is obsolete, /etc/hosts isn't. nsswitch.conf decides whether and how /etc/hosts is used. – Tobu – 2014-10-01T13:28:06.833