Home
My IP
GPS
Find Me
Your Location
4️⃣IPv4:
📍...
6️⃣IPv6:
🌍...
🏢...
📌...
Privacy & Security14 min read

How to Stop Websites from Tracking Your Location: Browser-by-Browser Guide

Complete guide to preventing location tracking in Chrome, Firefox, Safari, and Edge. Control your privacy with step-by-step instructions.

By WhatIsMyLocation.org Team·Updated January 17, 2025
How to Stop Websites from Tracking Your Location: Browser-by-Browser Guide

How to Stop Websites from Tracking Your Location: Browser-by-Browser Guide

Every time you visit a website, it may attempt to pinpoint your physical location. While this enables useful features like local weather and nearby search results, it also raises significant privacy concerns. Advertisers, data brokers, and potentially malicious actors can use this information to track your movements, target you with location-based ads, or even facilitate stalking.

This guide provides comprehensive instructions for controlling location access in every major browser, plus advanced techniques for those who want maximum privacy.

How Websites Track Your Location

Before blocking location access, it's important to understand the different tracking methods:

1. Browser Geolocation API

Websites can request your precise location through the browser's Geolocation API. This triggers the permission popup you've probably seen:

"example.com wants to know your location"

Accuracy: Very high (10-50 meters with GPS/WiFi)

Your Control: You can allow, deny, or block entirely

2. IP-Based Geolocation

Every internet connection has an IP address that roughly indicates your location. Websites can determine your approximate location without asking permission.

Accuracy: City-level (10-50 km)

Your Control: VPN or proxy required to mask

3. WiFi Network Mapping

If you're on WiFi, your network's name and signal strength can be matched against databases of known access points.

Accuracy: Building-level (50-200 meters)

Your Control: Disable WiFi scanning or use VPN

4. Cellular Tower Triangulation

Mobile browsers can use cell tower data for location approximation.

Accuracy: Neighborhood-level (500m-2km)

Your Control: Limited; airplane mode or VPN

Google Chrome: Complete Location Control

Chrome is the most popular browser, and also one of the most permission-hungry. Here's how to lock it down.

Block Location for All Websites

Desktop (Windows/Mac/Linux):

  1. Click the three-dot menu and select Settings
  2. Select Privacy and security then Site Settings
  3. Scroll to Location
  4. Select Don't allow sites to see your location

Mobile (Android):

  1. Open Chrome and tap three-dot menu then Settings
  2. Tap Site settings then Location
  3. Toggle off Location

Mobile (iOS):

  1. Open Settings app (not Chrome)
  2. Scroll to Chrome
  3. Tap Location
  4. Select Never

Manage Per-Site Permissions

Already granted permission to some sites? Here's how to revoke:

  1. Go to Settings then Privacy and security then Site Settings then Location
  2. Under "Allowed to see your location," click the site
  3. Select Block or Remove

Clear Location History in Chrome

Chrome may store location data from previous sessions:

  1. Settings then Privacy and security
  2. Click Clear browsing data
  3. Select Advanced tab
  4. Check Site settings
  5. Click Clear data

Mozilla Firefox: Privacy-First Settings

Firefox has stronger privacy defaults than Chrome. Here's how to maximize them.

Block Location Globally

  1. Click the hamburger menu then Settings
  2. Select Privacy & Security
  3. Scroll to Permissions
  4. Click Settings next to Location
  5. Check Block new requests asking to access your location
  6. Click Save Changes

Enhanced Tracking Protection

Firefox's Enhanced Tracking Protection doesn't block geolocation directly but limits tracking scripts:

  1. Settings then Privacy & Security
  2. Under Enhanced Tracking Protection, select Strict

This blocks:

  • Social media trackers
  • Cross-site cookies
  • Fingerprinters (which can infer location)
  • Cryptominers

about:config Tweaks

For advanced users, Firefox's hidden settings provide granular control:

  1. Type about:config in address bar
  2. Click "Accept the Risk and Continue"
  3. Search for and modify these preferences:
PreferenceValueEffect
geo.enabledfalseCompletely disables geolocation
geo.wifi.uri(empty)Disables WiFi-based location
geo.provider.network.url(empty)Disables network location
browser.region.network.scanfalseStops network scanning

Apple Safari: macOS and iOS Guide

Safari integrates with Apple's privacy ecosystem, but still needs configuration.

Safari on macOS

Block All Location Requests:

  1. Open Safari then Settings (Cmd + comma)
  2. Go to Websites tab
  3. Select Location from the sidebar
  4. Set "When visiting other websites" to Deny

Manage Existing Permissions:

In the same Location panel, you'll see a list of sites. Change each to Deny or Ask.

System-Level Control:

Even if Safari allows location, macOS can block it:

  1. Open System Settings then Privacy & Security then Location Services
  2. Find Safari in the list
  3. Toggle to Never or deselect the checkbox

Safari on iOS/iPadOS

Block Safari Location:

  1. Open Settings then Privacy & Security then Location Services
  2. Scroll to Safari Websites
  3. Select Never

Per-Website Control:

When a website requests location, Safari shows a prompt. Choose:

  • Don't Allow (one-time block)
  • Allow Once (temporary)
  • Allow While Using (session-based)

There's no "Always Allow" option for websites on iOS—a privacy-first design choice.

Microsoft Edge: Windows Integration

Edge is deeply integrated with Windows, which affects location permissions.

Block Location in Edge

  1. Click three-dot menu then Settings
  2. Select Cookies and site permissions
  3. Click Location
  4. Toggle off Ask before accessing

Alternatively, select Block to deny all requests silently.

Clear Site-Specific Permissions

  1. In Location settings, scroll to Allow section
  2. Click the trash icon next to each site
  3. Or use Clear permissions to reset all

Windows Location Settings

Edge can access Windows location services. To block at the OS level:

  1. Open Windows Settings then Privacy & security
  2. Click Location
  3. Toggle off Location services (blocks all apps)
  4. Or scroll to Edge and toggle it off specifically

VPNs: Blocking IP-Based Location

Browser settings don't prevent IP-based location tracking. For that, you need a VPN.

How VPNs Mask Location

  1. Your traffic routes through VPN server
  2. Websites see the VPN server's IP address
  3. Your actual IP (and location) remains hidden

Choosing a VPN for Privacy

FeatureLook For
No-logs policyAudited and verified
Kill switchBlocks traffic if VPN disconnects
DNS leak protectionPrevents location leaks via DNS
Servers in many countriesAppear from different locations

Recommended VPNs:

  • Mullvad (privacy-focused, accepts cash)
  • ProtonVPN (open source, Swiss-based)
  • IVPN (audited, no email required to sign up)

VPN Limitations

VPNs don't block:

  • Browser geolocation API (requires browser settings)
  • GPS on mobile devices
  • WiFi triangulation in some cases

Use VPN in addition to browser settings, not instead of.

Testing Your Location Privacy

After configuring settings, verify they work.

Using Our Tools

Visit whatismylocation.org/my-ip to check:

  • What IP address websites see
  • What location is derived from your IP
  • Whether your VPN is working

Then visit whatismylocation.org/gps-coordinates and:

  • Deny the location permission when prompted
  • Verify the page shows "Location access denied"

The Bottom Line

Protecting your location privacy requires a multi-layered approach:

  1. Browser settings block the Geolocation API
  2. VPN masks your IP-based location
  3. Privacy-focused browser reduces fingerprinting
  4. Regular testing ensures settings work

No single method provides complete protection. Combine techniques based on your privacy needs.

Check your current exposure with our IP Address tool, and test your browser's geolocation with our GPS Coordinates page.

Related Articles:

W

WhatIsMyLocation.org Team

Our team of network engineers and web developers builds and maintains 25+ free networking and location tools used by thousands of users every month. Every article is reviewed for technical accuracy using real-world testing with our own tools.

Related Articles

Try Our Location Tools

Find your IP address, GPS coordinates, and more with our free tools.