For over 10 years I have been using the HOSTS file to block ads and other nasties on both macOS and Windows PCs. (Refer: https://winhelp2002.mvps.org/hosts.htm)
It has worked flawlessly, until the macOS upgrade to Monterey 12.1.
The new behaviour was noticed on both my MacBook Pro (early 2015) and Mac mini (2018).
With Firefox, ads continue to be blocked just as before.
I can now only block ads in Safari (15.2) by using a content blocker e.g. Adblock Plus.
It seems as though Safari on Monterey is ignoring the HOSTS file. I have tried restarts of Safari and the Mac and flushing the DNS cache, all to no avail.
As a test I added www.nytimes.com to the hosts file. On Firefox, the site doesn't appear to exist. Safari opens it as per usual - so it is definitely ignoring HOSTS.
Anyone else noticed this issue?
Update: the issue only occurs when Hide IP address for Trackers and Websites is selected; it does not occur when Hide IP address for Trackers only is selected.
My understanding is that browsers should never ignore HOSTS as they may be required for Intranet and other redirects/blocks.