How to Easily Spoof and Change Your Location in Firefox Browser

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.

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:

  1. Type about:config in the Firefox address bar
  2. Search for geo.enabled
  3. Double click the value to change from True to False

This stops Firefox from accessing your location from any source.

Method 2: Manually Change Your Firefox Location

To manually set a fake coordinate:

  1. Follow steps 1-2 above
  2. Search for geo.wifi.uri
  3. 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:

  1. Install Location Guard
  2. Go to Options
  3. Choose Fixed Location
  4. 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:

  1. Open Firefox browser settings
  2. Tap Location
  3. Toggle “Share location” off

This prevents Firefox from getting your device location.

Method 2: Spoof Your Location

To manually set a fake location:

  1. Type about:config in address bar
  2. Search for
  3. Tap the edit icon
  4. 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.