Disable Captive Portal in Firefox and Connection to detectportal.firefox.com

Here's why Firefox is making connections to detectportal.firefox.com on start

Some Firefox users noticed that the browser establishes connections to the detectportal.firefox.com web site. Here's why and how to prevent it from that behavior.

The connection to the detectportal.firefox.com address is one of the first connections that Firefox makes automatically. This can be seen on the following screenshot:Detectportal.firefox

This happens because Firefox is trying to detect if your connection is limited and requires an extra authorization. This is common for hotel wi-fi networks and some other network providers.

The thing is known as 'Captive Portal'. When the browser is trying to establish a connection to a web site, if it is not authorized via the Captive portal, the connection is aborted. This means that the browser, and any other app that requires an Internet connection, cannot load the required web page.

If you never use such networks, for example, you use Firefox on your home PC, you may want to disable the captive portal detection feature, and block connection attempts to detectportal.firefox.com​.

To Disable Captive Portal in Firefox and Connection to detectportal.firefox.com

  1. Open Firefox
  2. Type about:config into the address bar.
  3. Confirm that you will be careful if you see the warning page.Firefox About Config Warning Ill Be Careful
  4. Type network.captive-portal-service.enabled in the search box.
  5. Set the network.captive-portal-service.enabled option to false to stop Firefox from detecting Captive Portal.Firefox Disable Captive Portal
  6. A value data of True is the default value, means the connection to detectportal.firefox.com​ will be established every time you start Firefox.
  7. Restart Firefox.

Tip: In About:Config, you can also set Update captivedetect.canonicalURL to an empty string. You can also add the detectportal.firefox.com domain in your hosts file pointing to 127.0.0.1.

If you are Firefox VPN user, when setting ‘network.captive-portal-service.enabled’ to false, Firefox Private Network may fail to make a connection.

Finally, there are some more domains you may want to add to the hosts file. They are also serve for internal Firefox needs, e.g. for collecting stats and telemetry. They are not required for regular browsing tasks and receiving browser updates. Here is the list:

ostats.mozilla.com
sostats.mozilla.com
metrics.mozilla.com
hardware.metrics.mozilla.com
incoming.telemetry.mozilla.org
crash-stats.mozilla.com
experiments.mozilla.org
getpocket.cdn.mozilla.net
qsurvey.mozilla.com
telemetry.mozilla.org
telemetry-experiment.cdn.mozilla.net
detectportal.firefox.com

Author: The MFTNEXT Team

The MSFTNEXT project is a small team of authors who love to engage with the latest technology and gadgets. Being passionate Windows bloggers, we are happy to help others fix their system issues.

Leave a Reply

Your email address will not be published. Required fields are marked *