Disclaimer: We sustain our work & review products through paid collaborations.
How to Change Browser’s Geolocation to Fully Enjoy the Benefits of a VPN

How to Change Browser’s Geolocation to Fully Enjoy the Benefits of a VPN


There’s no denying that VPNs are one of the world’s most important modern-day tools. They allow users to easily circumvent geographical blocks to enjoy the internet without any restrictions, while at the same time increasing the level of anonymity by remaining anonymous to intrusive ISPs and others trying to snoop on their connection. But VPNs are not perfect, and what most people actually don’t know is that, even when connected, many times these tools still allow some sites to see the user’s real location. That’s because of the so-called HTML5 geolocation, a feature present in all internet browsers that is enabled by default and yet completely unknown for many.

How to Change Browser's Geolocation to Fully Enjoy the Benefits of a VPN

Disabling browser’s geolocation for good

The trick behind the HTML5 geolocation is that it is not based on IP addresses, which is the exact thing that VPNs are responsible for changing. Instead, it is a JavaScript API that locates the user’s position based on alternate information, such as system’s settings, nearby Wi-Fi networks and the strength of their signal, GPS sensors, and more. Because it’s a serious menace to privacy, users are first asked to give permission for this method to be able to report such location information, but this is often ‘hidden’ in a simple acceptance of terms whenever a new browser is installed.

Fortunately, taking care of this geolocation trick is relatively easy, but sometimes it does require diving in the uncharted waters of browser configurations. In Firefox you will need to type “about:config” into the address bar, which will open a massive window of configuration settings. Scroll down or search for the “geo.enabled” option and notice how it is probably set to ‘true’. Double-click on it to set it to false and HTML5 geolocation will be disabled. And since you’re already there, do the same on “media.peerconnection.enabled” to prevent any WebRTC leaks that also may be revealing your real location.

Geolocation Smartphone
Up to 73% off NordVPN 2-year plans
NordVPN logo
Subscribe to NordVPN through our affiliate link and save up to 73% on 2-year plans. Do it with no fear by knowing that your purchase is protected by a 30-day money-back guarantee.
Save Up to 77% on NordVPN

Other browsers don’t even require that much work: Edge, Internet Explorer, Safari, Opera and even Chrome keep this option on their corresponding settings pages, which makes everything much easier. Search for the location sections – usually inside either the advanced settings or the websites tab – and uncheck this option or change the setting to disable websites tracking your real physical location. At this point, changing your IP address will be enough to keep you hidden, meaning the VPN becomes reliable once again.

Altering coordinates to match VPN location

Besides disabling these functions, there’s another trick that can be done that will work even if geolocation is still enabled, and this is by altering the latitude and longitude coordinates to match the location of the IP address attributed to you by the VPN. To do this you can use tools like Ctrlq.org to obtain the coordinates of the same city that the VPN is connected to by just searching for the name of the city, for example ‘London’ or ‘New York’. At this point, using Chrome as an example, you will need to open the Developer Tools menu.

On the bottom left there should be a “Console” tab, and within there select “Sensors”. This will take you to the geolocation tab where you should see some cities that are set by default on the browser. In here, select “Custom location” and the latitude and longitude fields should appear.

Chrome Developer Tools Geolocation Change

Finally, just copy the geographical coordinates from the recommended site, insert them in the corresponding fields and refresh the page without closing the Developer Tools. To confirm that the changes were made successfully, visit Ctrlq.org again and run a test to see if both the VPN and the geolocation match the same city. However, note that this method will need to be followed each time you change the VPN location if you want your location to remain securely hidden.

If you don’t want to either mess around with the browser settings or completely turn the function off, then a lot of trouble can be saved by installing third party extensions like Location Guard or any others that are available for your corresponding browser’s store. These work in almost the same way, allowing fixed locations to be set for determined websites and therefore fooling them about your real location.


Best VPN services of 2025

Editor's choice

NordVPN

Editor's rating:
Easy to use on any device
Extra privacy and file sharing
Comprehensive online protection
Fast and reliable connections
Security

Surfshark

Editor's rating:
Easy to use everywhere
Enhanced online privacy
Fast and secure connections
Protect unlimited devices
Multi-device users

IPVanish

Editor's rating:
Protect all your devices
Ensures user privacy
Help anytime you need it
Strong online protection
Gaming

ExpressVPN

Editor's rating:
Works on all major platforms
Fast, smooth browsing
Easy for anyone to use
Added features for flexibility
Traveling

CyberGhost VPN

Editor's rating:
Enhanced privacy and security
Fair prices
Flexible IP address options
Protects all your devices
Streaming

ZoogVPN

Editor's rating:
Affordable VPN solution
Fast and stable connections
Straightforward platform
Protects your online privacy
Torrenting

Private Internet Access

Editor's rating:
Multiple device compatibility
Keeps your IP address private
Suitable for all users
Tailor settings to your needs
Beginners

TunnelBear

Editor's rating:
Intuitive and easy to use
Extra privacy and security
Blocks trackers and ads
Smooth, fast browsing

Discussions

Share your thoughts, ask questions, and connect with other users. Your feedback helps our community make better decisions.

©2012-2025 Best Reviews, a clovio brand – All rights reserved