Disable Location-Aware Browsing (Geolocation) In Firefox
Firefox supports the Geolocation HTML API. Sites and applications may use the API to get the location of the user but only if the user gives them permission to do so.
Sites may use other methods to get the location, e.g. by doing a reverse whois on the IP address used to connect to the site. These methods are not as accurate usually, however, and use of the Geolocation API is preferred by many sites because of that.
Firefox displays a notification to the user whenever a site or application wants to use geolocation to get a user's location in the world. The feature is popular and used by many services including services that provide maps or different content based on the user's location in the world.
The message reads: Will you allow [site] to access your location?. You can allow or disallow access to the location, and make the decision permanent by checking the "remember this decision" checkbox to either allow or disallow access permanently.
The prompt looks very similar to the add-on installation prompt that Firefox displays when you install new browser extensions.
Sites get the user's locations when access to the API is allowed. Mozilla Firefox indicates that from Firefox 70 onward.
Firefox users may block the location feature entirely in the browser. Sites and apps won't be able to use it when access is blocked, but there is still an option to whitelist individual sites that you want to give the permission.
It needs to be noted that some sites may not function properly or at all if you disable location in the Firefox browser.
Firefox users have two main options to disable Geolocation in Firefox.
Option 1: The Preferences
The Permissions group of the Firefox Preferences lists Location as an option. Here is how you configure it:
- Load about:preferences#privacy in the web browser's address bar.
- Scroll down to the Permissions section on the page that opens.
- Click on the Settings button next to the Location permission.
- Check "block new requests asking to access your location" to disable Location access in Firefox.
Option 2: about:config
The second option that you have is to configure the feature on Firefox's about:config page.
- Load about:config in the Firefox address bar.
- If a warning is displayed, accept it to continue.
- Search for geo.enabled
- Toggle the value of the preference to False to disable it. A value of True means the feature is enabled.
Sites may still use other functions to locate users in the world. One of the most common methods detects the location using the IP address. The use of VPNs or proxy servers could hide the "real" location of the user.Advertisement