To disable the captive portal detection in Firefox browser, you need to follow the above-mentioned steps. That said, you need to open the about:config page first in the Firefox browser. Then, find the network.captive-portal-service.enabled service. If it is set to true, you need to double-click on it to set it as false. Similarly, you need to find the network.connectivity-service.enabled service and set it as false.