
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):
- Click the three-dot menu and select Settings
- Select Privacy and security then Site Settings
- Scroll to Location
- Select Don't allow sites to see your location
Mobile (Android):
- Open Chrome and tap three-dot menu then Settings
- Tap Site settings then Location
- Toggle off Location
Mobile (iOS):
- Open Settings app (not Chrome)
- Scroll to Chrome
- Tap Location
- Select Never
Manage Per-Site Permissions
Already granted permission to some sites? Here's how to revoke:
- Go to Settings then Privacy and security then Site Settings then Location
- Under "Allowed to see your location," click the site
- Select Block or Remove
Clear Location History in Chrome
Chrome may store location data from previous sessions:
- Settings then Privacy and security
- Click Clear browsing data
- Select Advanced tab
- Check Site settings
- Click Clear data
Mozilla Firefox: Privacy-First Settings
Firefox has stronger privacy defaults than Chrome. Here's how to maximize them.
Block Location Globally
- Click the hamburger menu then Settings
- Select Privacy & Security
- Scroll to Permissions
- Click Settings next to Location
- Check Block new requests asking to access your location
- Click Save Changes
Enhanced Tracking Protection
Firefox's Enhanced Tracking Protection doesn't block geolocation directly but limits tracking scripts:
- Settings then Privacy & Security
- 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:
- Type about:config in address bar
- Click "Accept the Risk and Continue"
- Search for and modify these preferences:
| Preference | Value | Effect |
|---|---|---|
| geo.enabled | false | Completely disables geolocation |
| geo.wifi.uri | (empty) | Disables WiFi-based location |
| geo.provider.network.url | (empty) | Disables network location |
| browser.region.network.scan | false | Stops 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:
- Open Safari then Settings (Cmd + comma)
- Go to Websites tab
- Select Location from the sidebar
- 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:
- Open System Settings then Privacy & Security then Location Services
- Find Safari in the list
- Toggle to Never or deselect the checkbox
Safari on iOS/iPadOS
Block Safari Location:
- Open Settings then Privacy & Security then Location Services
- Scroll to Safari Websites
- 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
- Click three-dot menu then Settings
- Select Cookies and site permissions
- Click Location
- Toggle off Ask before accessing
Alternatively, select Block to deny all requests silently.
Clear Site-Specific Permissions
- In Location settings, scroll to Allow section
- Click the trash icon next to each site
- Or use Clear permissions to reset all
Windows Location Settings
Edge can access Windows location services. To block at the OS level:
- Open Windows Settings then Privacy & security
- Click Location
- Toggle off Location services (blocks all apps)
- 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
- Your traffic routes through VPN server
- Websites see the VPN server's IP address
- Your actual IP (and location) remains hidden
Choosing a VPN for Privacy
| Feature | Look For |
|---|---|
| No-logs policy | Audited and verified |
| Kill switch | Blocks traffic if VPN disconnects |
| DNS leak protection | Prevents location leaks via DNS |
| Servers in many countries | Appear 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:
- Browser settings block the Geolocation API
- VPN masks your IP-based location
- Privacy-focused browser reduces fingerprinting
- 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:
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.