Skip to content

Can Browser Geolocation Override the Country of Your VPN Server?

A VPN changes the address a site sees. The browser location prompt is a separate channel that your device answers. Here is how the two fit together.

10 min readUpdated Nov 13, 2026By XPASS Editorial Team

Can Browser Geolocation Override the Country of Your VPN Server?

You connect a VPN, pick a server in another country, and open a website. The page greets you with content for that country. Then a small box appears at the top of the browser: "this site wants to know your location." If you click Allow, the page may suddenly show shops, weather or delivery options for the town where you are actually sitting. It looks as if the browser has overruled the VPN, and many people conclude that the VPN is broken.

It is not broken. A VPN and the browser location feature answer two different questions, and they travel by two different routes. This article explains what each one tells a website, why they can disagree, how to see which one a page is using, and how to set permissions so that you decide what a site learns. It is written for people who want to understand their own browser. It does not explain how to fake a position or get around rules that a service enforces.

The short answer

Browser geolocation cannot change which country your VPN server is in. The VPN server stays where it is, and the address a website sees on the connection stays the address of that server. What browser geolocation can do is give the website a second, separate piece of information, but only if you say yes to a permission prompt.

So the honest summary is this: with a VPN on and location permission allowed, a site may hold two answers. One is the rough place suggested by the VPN server's IP address. The other is the place your device reports through the browser. Which answer the page uses depends on how the page was built, not on the VPN.

Question What answers it Does the VPN change it?
Which IP address is connecting? The network connection itself Yes, the site sees the VPN server's address
What country does that IP seem to belong to? A location database the site or its provider uses Indirectly, because the address changes
Where is this device, according to the browser? The browser's location feature, only after you allow it Not directly
What language and time zone does the browser report? Browser and system settings No

What the browser location feature actually is

Modern browsers include a feature, usually called the Geolocation API, that lets a web page ask for the position of the device. The page cannot just read it. The browser shows a prompt, and the page receives a position only if you choose to allow it. Browsers generally require a secure connection (HTTPS) before they offer this feature at all, and they remember your choice for each site.

When you allow it, the browser asks the operating system for a position. The system may combine several sources: satellite positioning (GPS) on devices that have it, the names and signal strength of nearby Wi-Fi networks, Bluetooth, and nearby mobile towers. Some browsers or systems may also send these clues to a location service run by the browser or system maker, which returns a position. The exact mix varies by device, browser and settings, so treat any single description as general rather than exact.

The result can be quite precise, sometimes down to a street or a building, which is very different from an IP address. An address on its own usually points at a city or region, and it can be wrong. The related article on why apps still know your location with a VPN walks through the same difference for apps on a phone.

What a VPN server country tells a site

When you connect to a VPN, your traffic leaves from the VPN server. A website sees the server's public address instead of the one your home or mobile provider gave you. If you want a refresher on addresses, the Internet Protocol is described in RFC 791, and the plain-language overview is in how to choose a VPN server location.

A website or its provider then looks that address up in a location database to guess a country and sometimes a city. That guess is what you see as "your country" on a page that does not use the browser prompt. Two things follow. First, the guess is only as good as the database, so a correct server location can still be shown wrongly, as covered in why your VPN shows the wrong location. Second, the guess has nothing to do with the position of your device. It describes the network exit point.

Where the two answers collide

The collision happens on pages that use both sources. A few common examples help.

A map or store finder

You open a map in your browser while connected to a server in another country. The page loads in the language and style for that country, but the moment you allow location, it centres on your street. The page used the address for the first guess and the browser position for the precise one. Nothing is wrong. This is the browser feature doing what you allowed it to do.

A shopping or news site

A shop may choose its currency and shipping options from the address, then ask the browser for your location to show nearby pickup points. You can end up with prices for one country and pickup points in another. If this looks confusing, switching the location permission off for that site and reloading usually brings the page back to a single signal.

A site that checks both and flags a difference

Some services compare the two and treat a mismatch as something to review, for example an account security check or a service that has rules about where it can be used. A VPN user can run into this by accident. The sensible response is not to look for a trick. It is to use the service in the way its own rules allow, and to contact the service if you are blocked by mistake. This article does not cover ways to get around such checks, and doing so may break a site's terms.

How to see which signal a page is using

You can find out in a few minutes, without any special tools. The aim is to separate the address-based guess from the browser-reported position.

  1. Connect the VPN and choose a server. Note the country the app shows.
  2. Open a fresh private or incognito window so that old site permissions do not apply.
  3. Visit a page that reports your location from your address only. Many "what is my IP" pages do. Write down the country and city it shows.
  4. Visit a page that asks for the browser location. Click Block the first time and note what it shows. Many such pages then fall back to the address-based guess.
  5. Reload the same page and choose Allow this time. Compare the result with step 4.
  6. Disconnect the VPN and repeat step 5. If the position barely changes between connected and disconnected, the precise answer is coming from the device, not from the VPN.

For a wider set of checks, including address, DNS and WebRTC tests, see the guide to a browser VPN leak test. That article is about whether your traffic leaves the tunnel. This one is about what you choose to tell a page.

A plain example

Suppose Mai is in Bangkok and connects to a server in another country to use a travel booking site. The site first shows prices for the server's country. Mai then clicks "find hotels near me" and allows the browser location. The list now shows hotels in Bangkok. Mai assumes the VPN stopped working. In reality, the VPN is still doing its job: the site's server still sees the VPN address. The hotel list came from the position the browser reported. Blocking location for that site and typing a destination by hand would give Mai a list based on the typed place instead.

How to manage location permission in your browser

The exact menu names change between browsers and versions, so use these steps as a map rather than a script.

  1. Open the browser settings and search for "location" or "site settings" or "permissions."
  2. Find the default setting for location. Choose the option that asks you first, or blocks by default if you rarely need it.
  3. Open the list of sites that already have a choice saved. Remove any you do not recognise or no longer use.
  4. On a page that is currently asking, look at the icon in the address bar. It usually lets you change or reset the permission for that site.
  5. On a phone, also check the system-level location setting for the browser app. If the system blocks the browser, the browser cannot hand a position to any page.
  6. Where the system offers it, turn off precise location for the browser if an approximate area is enough for what you do.

It is worth knowing that permission can exist at two levels: the system lets the browser use location, and the browser lets each site use it. Both must be on for a page to receive a position. Revoking either one stops the flow.

What a private window does and does not change

A private or incognito window starts without saved site permissions, and it forgets choices when it closes. That makes it handy for a clean test, as in the steps above. It does not change your IP address, and it does not stop a page from asking for location. If you allow a page in a private window, it receives the position just like any other window. For managing the choices a site has saved, see website location permissions with a VPN.

Other clues that can point to your real region

Even with location blocked, a page can collect small hints that together suggest where you are. None of them is a precise position, but it helps to know they exist.

  • The browser language list and system region settings.
  • The time zone reported by the browser.
  • The currency or locale of the account you are signed in to.
  • The country of the payment card or the phone number tied to an account.
  • Cookies and sign-ins saved from earlier visits.

A VPN changes none of these. The EFF's Cover Your Tracks test shows how many of these hints your own browser exposes, and the article on browser fingerprinting covers the idea in more depth. If you want to understand the privacy side of the wider picture, the EFF Surveillance Self-Defense guides are a good neutral starting point.

Limits and what to watch for

It helps to be honest about what this does and does not prove.

  • A VPN does not hide your device position from a page you have allowed to read it. If you click Allow, you are choosing to share it.
  • A VPN does not guarantee that a site will treat you as being in the server country. Some pages weigh several signals, and some ignore the address altogether.
  • Blocking location in the browser does not hide your address or your account details. It only stops one feature.
  • Your browser's location behaviour may differ from the descriptions above. Some browsers use their own location services, some systems add extra permission steps, and updates change wording. Always test your own setup.
  • If a service blocks you or asks you to prove where you are, follow its own help process. Do not rely on a tool to get around it.
  • Allowing location for a trusted map or delivery service is normal and often useful. The point is not to refuse everything, but to know what you are sharing and with whom.

A short routine you can repeat

Once you understand the two channels, a small routine keeps surprises away.

  1. Before you connect, decide whether the task needs your real position. A map for the street you are on does. A news site does not.
  2. Connect the VPN and open the site.
  3. If a location prompt appears and the site does not need it, click Block.
  4. If it needs a position, allow it only for this visit when the browser offers that choice.
  5. Every few months, open the saved site permissions and remove anything old.
  6. If a page looks inconsistent, reload it with location blocked, then compare.

Summary

Browser geolocation does not override the country of your VPN server. The VPN controls the address a website sees, while the browser location feature is a separate question that your device answers only when you allow it. When both are in play, a site can hold two different answers, and the page decides which to show. Keeping the browser default on "ask first," allowing only the sites that need a position, and checking your own setup with a few simple tests will keep you in control. If you would like a VPN pass to use for these checks, you can look at the options on the pricing page.

Frequently asked questions

Can browser geolocation override my VPN server country?

Not in the sense of changing the VPN. The two work separately. The VPN decides which IP address a site sees, while browser geolocation is a question the site asks your browser, and your device answers it only if you allow it. If you allow it, the site can end up with two different answers about where you are.

Will a website see my real location if I never click Allow?

Not through the browser location feature. Without your permission the browser does not hand over a position. The site can still make a rough guess from the IP address the VPN gives it, and from other clues such as language and time zone.

Does turning on a VPN change what the browser location prompt returns?

Not directly. The browser asks the operating system, and the answer may rely on GPS, nearby Wi-Fi networks or mobile towers. Depending on the browser and device, it may also use a network-based lookup, which a VPN can influence. Behaviour varies, so test your own setup.

Should I block location permission for every site?

Blocking by default and allowing only the sites that need a position, such as a map, is a sensible habit. Choose the option that asks you first, or the 'only while using' choice where your browser offers it, and review the list now and then.

Is a mismatch between my IP country and my browser location a problem?

It is normal when a VPN is on and you have allowed location. It can cause a site to show mixed signals, such as local results for your real city on a page that also shows prices for the VPN country. Switching the permission off for that site usually settles it.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

Privacy Guides

Why Can Apps Still Know Your Location with a VPN?

A VPN changes the address a site sees, not the GPS, Wi-Fi and account clues your phone offers. Here is what apps use and how to limit it.

9 min read

VPN Basics

Why Your VPN Shows the Wrong Location

When a site thinks you are in the wrong city or country while a VPN is on, the cause is usually the database behind the guess, not the VPN itself. This guide explains how location lookups work and how to check them.

9 min read

Device Guides

How to Test Browser VPN Extensions for Leaks

A repeatable routine for testing a browser VPN extension: take a baseline, run four checks, log what you see and decide what to do when an address slips out.

10 min read