X
Tap here to go to the mobile version of the site.

Support Forum

Firefox ignores hosts file when tethered to iPhone

  • No replies
  • 1 has this problem
  • 2 views
Posted

When connected to regular Wifi, Firefox respects the /etc/hosts file. However, when tethered to an iPhone, Firefox does not respect the /etc/hosts file. (Neither does Chrome, for what it's worth). Other programs such as Postman, and traceroute, still respect the hosts file, it's just browsers (including Firefox) that do not.

The behaviour is perfectly repeatable - by switching from wifi to tether and back again, the problem goes away/comes back.

My use case is blocking domains like googletagmanager.com . When on Wifi, firefox does not load anything from that domain. However, when tethered, Firefox does load content from that domain (even though Postman still cannot).

I am using Firefox 72.0.1 and Macos 10.14.6

Is this a setting? A bug? It is certainly not expected behaviour.

When connected to regular Wifi, Firefox respects the /etc/hosts file. However, when tethered to an iPhone, Firefox does not respect the /etc/hosts file. (Neither does Chrome, for what it's worth). Other programs such as Postman, and traceroute, still respect the hosts file, it's just browsers (including Firefox) that do not. The behaviour is perfectly repeatable - by switching from wifi to tether and back again, the problem goes away/comes back. My use case is blocking domains like googletagmanager.com . When on Wifi, firefox does not load anything from that domain. However, when tethered, Firefox does load content from that domain (even though Postman still cannot). I am using Firefox 72.0.1 and Macos 10.14.6 Is this a setting? A bug? It is certainly not expected behaviour.
Quote

Additional System Details

Installed Plug-ins

Adblock Plus Ember Inspector Facebook Container

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0

More Information

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.