Getting started

How to Use Location Guard on Firefox

Use Location Guard in Firefox: the address-bar icon, per-site levels, private windows, Firefox for Android and the options page, explained step by step.

Once Location Guard is installed in Firefox, most of the time you won't notice it: it waits until a website asks for your location, then quietly hands over an adjusted position. This walkthrough shows each part of the add-on you'll interact with, from the first-run demo to per-site levels, private windows and Firefox for Android.

Haven't installed it yet? Follow How to install Location Guard first. This walkthrough assumes version 2.5.0 from Firefox Add-ons.

The first-run demo

Right after installation, Location Guard opens a short demo page in a new tab. It walks you through a simulated location request so you can see the permission prompt, the address-bar icon and the effect of the privacy level without visiting a real website. You can close it at any time; it doesn't change your settings.

What happens when a site asks for your location

  1. The site makes a request

    For example, a weather site or a store locator calls the Geolocation API.

  2. Firefox asks you

    The usual Firefox permission panel appears. Location Guard doesn't change this step — you can still block the site, allow it once, or remember the decision.

  3. Location Guard adjusts the position

    If you allow the request, the add-on obtains your position from Firefox, adds noise according to the site's privacy level and passes only the adjusted position to the page.

  4. The icon appears

    A Location Guard pin appears in the address bar for that tab, showing that the page used geolocation. Hovering over it shows the level in use.

Click the pin icon to open the popup. It contains a short list of actions:

ItemWhat it does
Set level for siteChoose the level for the current domain: Use fixed location, High, Medium, Low or Use real location. The choice is remembered for that domain.
Pause / Resume Location GuardTemporarily turns protection off everywhere, so sites receive your real position. Use Resume to switch it back on.
Hide iconStops the pin appearing in the address bar. Protection keeps working; re-enable the icon from the options page.
OptionsOpens the full options page.
What is Location Guard?Opens the built-in FAQ.

A good habit is to set levels as you go: when a map site needs better precision, open the popup on that site and choose Low; when a weather site asks, choose High.

The options page

Open it from the popup's Options item, or from about:addons by selecting Location Guard and opening its options. It has three sections, reachable from the menu button in its header.

Options

  • Default level — used by every site without its own setting. Medium is pre-selected.
  • Pause and Hide icon — the same switches as in the popup.
  • Update accuracy — enlarges the accuracy value websites receive to reflect the added noise. On by default.
  • Delete fake location cache and Restore default options.

Privacy Levels

Pick Low, Medium or High at the top, then adjust the protection radius and cache time with the sliders. The map shows the protection area (red) and accuracy area (blue) for that level. See configuring privacy levels for recommended values.

Fixed Location

Click on the map or drag the marker to choose the point reported when a site uses "Use fixed location". Details in How to set a fixed location.

Private windows

Since Firefox 67, extensions don't run in private windows unless you allow them. If you browse privately and want protection there:

  1. Open about:addons (or Menu → Add-ons and themes).
  2. Select Location Guard.
  3. Set Run in Private Windows to Allow.

Without this, a private window receives your real browser position whenever you allow a site's request.

Firefox for Android

The add-on works the same way on Android, with a few interface differences: there is less space for the options maps, and you reach the popup actions through the browser's extensions menu rather than an address-bar pin. Install it from the Android listing (opens in a new tab), then open the Add-ons manager to change the default level.

On a phone, your browser position often comes from GPS and can be accurate to a few metres, so obfuscation is even more valuable. Remember that Android also has its own per-app location setting for Firefox. Location Guard only works when Firefox itself is allowed to obtain a position.

Pages where it can't help

  • Restricted pages — Firefox doesn't let extensions run on internal pages such as about: pages, or on addons.mozilla.org. Test on a normal website instead.
  • Pages with very strict security policies — Location Guard injects a small script into each page. On sites whose Content Security Policy blocks inline scripts, the add-on falls back to another method that the project notes may run later. A site that requests your location the instant it loads could, in rare cases, get the request in first. Choosing to block location for such sites is the safe option.
  • Your IP address — sites can still estimate your city from it. Use a VPN if that matters.

A quick monthly check

Every so often, run the browser location test with protection on and paused, and review Firefox's list of sites allowed to access your location (Settings → Privacy & Security → Permissions → Location → Settings). Remove sites you no longer use.

Frequently asked questions

Why does the Location Guard icon only appear on some pages?

In Firefox the add-on uses an address-bar (page action) icon that appears only on pages that used the Geolocation API. If no site has asked for your location in that tab, there is nothing to show.

Does pausing Location Guard affect all tabs?

Yes. Pause is global: while it is on, every site that you allow receives your real position. Remember to resume it.

Can I export my per-site settings?

The add-on doesn't include an export feature. Settings are stored in the extension's local storage in that Firefox profile.