Being able to change your location in Firefox can be useful for accessing geo-restricted content or protecting your privacy. While Firefox asks for permission before sharing your location, disabling or spoofing it prevents tracking.
There are a few easy methods to fake or change your location in Firefox on both desktop and mobile.
Table of Contents
Why Spoof Your Location in Firefox
Here are some reasons you may want to disable location tracking or spoof your location in Firefox:
- Access region-restricted content like location-based streaming services or websites
- Prevent websites from profiling you based on location to protect privacy
- Avoid getting geo-targeted ads
- Test how a website looks from different locations
“Modern browsers such as Mozilla Firefox can tell websites where you’re located in order to provide geolocation services. Your geographic location is obtained through various means (eg. using wifi data) and is often highly accurate, which can be a violation of your privacy.” [3]
Spoofing or changing your Firefox location allows you to maintain control over what information is shared.
Before Spoofing Your Location in Firefox
Before getting started, here are some useful things to know:
- Firefox determines your location via IP address, WiFi networks, device GPS and more. Disabling location services prevents this accurate tracking but your IP address can still give a general location.
- When spoofing your location, disable location services and then manually set a fake coordinate. Leaving services on can override your spoofed location.
- Spoofed locations reset when you close Firefox, so you’ll need to respoof each time.
How to Fake Your Location in Firefox on Computers
There are a few methods to spoof or disable location tracking in the Firefox desktop browser:
Method 1: Disable Geolocation in Firefox
To completely disable geolocation tracking:
- Type
about:config
in the Firefox address bar - Search for
geo.enabled
- Double click the value to change from
True
toFalse
This stops Firefox from accessing your location from any source.
Method 2: Manually Change Your Firefox Location
To manually set a fake coordinate:
- Follow steps 1-2 above
- Search for
geo.wifi.uri
- Replace the text with fake longitude and latitude coordinates
- For example:
data:application/json,{"location":{"lat":40.7128,"lng":-74.0060}}
This will spoof your location to the set coordinates.
Method 3: Use The Location Guard Firefox Extension
The Location Guard extension lets you easily spoof your location:
- Install Location Guard
- Go to Options
- Choose Fixed Location
- Drag map marker to a new location
The extension will now report that spoofed location to sites.
How to Spoof Location in Firefox on Mobile
There are also methods to disable or spoof your location in Firefox mobile:
Method 1: Disable Geolocation Sharing
To disable location access:
- Open Firefox browser settings
- Tap Location
- Toggle “Share location” off
This prevents Firefox from getting your device location.
Method 2: Spoof Your Location
To manually set a fake location:
- Type
about:config
in address bar - Search for
geo.provider.network.url
- Tap the edit icon
- Replace with fake coordinates
Checking Your Spoofed Location
To test if your spoofed location is working in Firefox, visit BrowserLeaks or similar sites to see what information is exposed.
The methods above allow you to easily disable location tracking or spoof your coordinates in Firefox for more privacy and control.