Skip to content

Can a Website Guess Your City from Nearby Wi-Fi Network Information?

Your device can use the Wi-Fi networks around it to estimate a position. A website only gets that if you allow it, and a VPN does not change the step.

10 min readUpdated Nov 20, 2026By XPASS Editorial Team

Can a Website Guess Your City from Nearby Wi-Fi Network Information?

You are on a train in another country, a VPN is connected, and a shopping site still greets you with a city that is close to where you really are. You never typed an address. Many people then wonder whether the site quietly looked at the Wi-Fi networks around the phone and worked out the neighbourhood from them. The short answer is that a web page cannot do this by itself, but your device and browser sometimes can, and they can pass the result to a page if you allow it.

This article explains in plain language how Wi-Fi based positioning is generally described, which part of it sits on your device, which part is a permission you control, and why a VPN does not change that step. It is written for people who want to understand their own settings. It does not describe how to fake a position or how to get around any rule a service enforces, and it hedges where behaviour differs between browsers and devices.

What "nearby Wi-Fi network information" means

Every Wi-Fi access point broadcasts a few identifying details so that devices can find it. These generally include a network name and a hardware address for the radio. A phone or laptop with Wi-Fi switched on can usually notice many of these broadcasts without joining any of the networks. You may have seen the list of networks that appears when you open the Wi-Fi menu. That list is the same kind of information.

The idea behind Wi-Fi positioning is simple. Location services that offer this feature are generally described as keeping a large reference collection that links access points to places where they were previously observed. If your device reports a handful of access points that it can currently see, a service can compare them with that collection and estimate where the device probably is. The more access points seen, and the better known they are, the better the estimate can be. In sparse areas the estimate may be rough or may not be available at all.

Two points are worth keeping in mind. First, the device does the observing, not the website. Second, the estimate is built from the surroundings, not from the internet connection you are using. You can be connected through mobile data, a hotel network or a VPN, and the nearby access points are still the same physical objects around you.

I am describing the general idea only. Exactly which services exist, how they store data, how long they keep it and how they combine Wi-Fi with GPS or mobile towers differs by vendor and changes over time. If you need exact details for your phone or browser, the vendor's own privacy documentation is the right source.

Who actually does the guessing

When people say "the website guessed my city", several different parties could be involved, and it helps to separate them.

Who What it can see Where the guess comes from
The website The IP address of the connection, request headers, language, time zone, and anything you send Mostly the IP address, plus any location you share
Your browser Only what the operating system lets it use, and only after you allow a request The browser's location feature, which asks the device
Your operating system Nearby access points, mobile towers, GPS if available Its own location service, with settings you can change
A location service The reports it receives from devices A reference collection of known access points

A web page runs inside your browser and does not have a direct view of the radio hardware. It cannot read the list of nearby networks on its own. What it can do is call the browser's geolocation feature. The browser then shows a permission prompt. If you allow it, the browser asks the operating system for a position, and the operating system may use GPS, nearby Wi-Fi, mobile towers or a combination. The browser then hands the site coordinates, usually with an indication of how precise they are.

This means the useful statement is not "a website can read my Wi-Fi". It is closer to "a website can ask my browser for a position, and the position might have been worked out with the help of nearby Wi-Fi". The difference matters, because the control point sits with you at the prompt and in your settings.

What the website sees without your permission

Without a permission, a site still gets a rough idea about you from the request itself. The most common clue is the IP address, which is described in RFC 791. Companies that sell location data for IP addresses map blocks of addresses to a region, and that mapping may be right, a little off or wrong. It is a guess about the network, not about you personally. A home connection may map to a nearby larger city, and a mobile connection may map to a location that is not close at all.

A site may also look at the browser language, the time zone the device reports, the currency you choose, or the account details you gave when you signed up. None of these is Wi-Fi positioning, but together they can lead a site to a city or a country. If you want to see which clues your own browser exposes, the EFF Cover Your Tracks test shows a number of them.

So when a site names your city without a prompt, the most likely explanation is the IP address, an earlier choice you made on that site, or a saved setting. An exact Wi-Fi based position generally requires the permission step. If you never saw a prompt and never allowed it, the Wi-Fi route is unlikely, although you cannot rule out a permission you granted long ago and forgot.

Where permission comes in

The browser location feature is built around consent. A page asks, the browser shows a prompt, and you answer. Typical choices are to allow once, allow while the site is open, block, or keep asking. The exact wording depends on the browser and the operating system, and it changes between versions.

The operating system also has its own switches. Phones and computers generally let you turn location services off completely, restrict them per app, or choose between a precise position and an approximate one. Some systems give a separate toggle that controls whether nearby Wi-Fi and other signals are used to improve the estimate. Where that toggle exists, its name and location differ from device to device.

A practical consequence follows. There are two layers of permission: the browser's per-site choice and the system-wide location setting. If either is off, a site normally cannot get a position from the browser feature. If both are on, a site you have allowed can receive an estimate that may be informed by nearby access points.

For a closer look at the browser side of this, see browser location permission with a VPN, which walks through the prompt and the saved choices.

What a VPN changes and what it does not

A VPN creates an encrypted connection between your device and a VPN server, and your internet traffic leaves from the server. The site you visit sees the server's IP address instead of the address of your home, hotel or mobile network. That is the main thing a VPN changes about location: the IP-based clue.

The Wi-Fi positioning step is separate. The nearby access points are observed by your device, and the browser's location answer comes from the device. A VPN does not remove the Wi-Fi networks around you, and it does not by itself tell the browser to behave differently. In general, a VPN does not change what the geolocation prompt returns if you allow it.

There is one nuance worth hedging. Some devices or browsers may use a network-based lookup to turn the observed access points into coordinates. Whether that lookup travels through the VPN tunnel, and whether the VPN changes its result, depends on the implementation and settings. I cannot state a single rule that covers every browser and device. What you can rely on is the permission setting. If you block the request, the site does not receive a browser position, whichever country your VPN uses.

This is also why a mixed picture can appear. The site may show prices for the VPN country because of the IP address while a map shows your actual neighbourhood because you allowed location. That is two channels giving two answers, not a failure of either. The article on browser geolocation versus the VPN country goes through that situation in more depth.

A plain example

Imagine Mali is staying in a guesthouse. She connects a VPN, chooses a server in another country, and opens a food delivery site. The site shows its menu and currency for the VPN country, which fits the IP address.

Then the site shows a banner: "Use my current location to find restaurants near you." She taps it, and her browser asks for permission. She allows it. The phone's operating system works out a position, possibly using GPS, nearby Wi-Fi or both, and gives the page coordinates. The page now lists restaurants in her actual neighbourhood, even though the rest of the page still follows the VPN country.

Nothing went wrong. The VPN did what a VPN does, which is to route traffic and present a different IP address. The location prompt did what it does, which is to let her share a position she chose to share. If Mali had tapped Block, the site would have fallen back to the IP address and other clues, and the list would likely have followed the VPN country or asked her to type an address.

How to check and control it

You do not need technical skill to see what is going on. These steps work in most browsers, with wording that varies.

  1. Open the site's information panel. Click the icon next to the address, often a lock or settings symbol, and look for a Location line. It usually shows Allow, Block or Ask.
  2. Change it if you wish. Setting it to Block or Ask puts you back in control for that site.
  3. Review the full list. In your browser's privacy or site settings, find the Location section and look at the list of sites that are allowed. Remove the ones you do not recognise or no longer need.
  4. Check the system setting. On a phone, open the location settings and see which apps may use location and whether a precise position is allowed. On a computer, find the location or privacy settings of the operating system.
  5. Look for a Wi-Fi scanning option. Some systems have a switch that lets the device scan for nearby networks to improve location, even when Wi-Fi itself seems off. Read its description before changing it, because turning it off can reduce the accuracy of maps and other location features.
  6. Test it. Visit a page that asks for location, allow it once, then block it and try again. Comparing the two results shows what the permission changes. You can also run a test on Cover Your Tracks to see which other clues your browser shows.
  7. Reload after changing settings. Some sites remember an earlier answer until the page is reloaded, and some keep a result for a while.

If you find a site that has location permission but does not need it, a map or a store finder being the usual legitimate uses, set it back to Ask. A good habit is to allow location only while a task needs it.

Limits and things to watch for

Be honest about what this topic can and cannot tell you.

  • Accuracy varies. A Wi-Fi based estimate can be close in a crowded area and weak in a sparse one. Do not treat any figure as exact.
  • Behaviour differs. Browsers, phones and computers handle this in different ways, and updates can change it. Statements here describe the general idea, not a guarantee for your device.
  • A VPN is not a location switch. It changes the IP address that a site sees. It does not guarantee that a site will believe you are somewhere else, and it does not control what your device reports when you allow location.
  • Other clues exist. Language, time zone, saved accounts, payment details and earlier visits can all point to a place; how websites estimate location from time zone and language covers them. See the discussion of how a VPN relates to location tracking for the wider picture.
  • Apps are different from websites. A phone app may hold its own location permission and, depending on the system, may be able to see nearby networks through system features. The permission model for apps is set by the operating system, so check the app's entry in your settings.
  • Public networks add their own risks. Location is only one of them. If you are using a shared network, read how to stay safer on public Wi-Fi as well.
  • Do not use these ideas to misrepresent where you are in order to break a service's rules. Services may have conditions about where they can be used, and those conditions apply whatever technology you use.

Common questions people ask

Does turning Wi-Fi off help? It may change how a position is worked out, but some systems still scan for nearby networks for location purposes unless you disable that option. The more dependable control is the location permission itself.

Will a VPN make my approximate location "wrong" everywhere? No. A VPN changes the IP address clue. Anything that uses your device's own location feature, with your permission, can still reflect where you are.

Can a site read my Wi-Fi password or my network name? The browser location feature does not hand a page your network password. A page does not get a list of nearby networks from it either; it receives coordinates and an indication of precision. Separate software installed on your device is a different matter and follows the permissions you gave it.

Is it safe to allow location for a map? For a site you trust and a task that needs it, many people consider it reasonable, especially with a once-only choice. You decide based on how much you trust the site and how sensitive the position is.

Should I worry about this on a home network? Your home access point is one of the networks a device may see. Whether it is known to any location service depends on factors outside your control. If that concerns you, check the options your router and your operating system provide, and read the vendor documentation. This article cannot say how any particular service treats a given access point.

Summary

A website cannot scan the Wi-Fi networks around you by itself. Your browser or device can use nearby access point information, along with other signals, to estimate a position, and it hands that result to a site only after you allow the location request. A VPN changes the IP address a site sees and the route of your traffic, but it does not generally change the Wi-Fi positioning step on your device. The control that matters is the permission: set sites to Block or Ask, review the saved list, and check the system location settings. If you want a VPN for the IP-address side of the picture, you can look at the XPASS pricing page and choose a pass length that suits you.

Frequently asked questions

Can a website guess my city from nearby Wi-Fi networks?

A website cannot scan the Wi-Fi around you by itself. Your browser or device can, however, use nearby access point information to estimate a position, and it may share the result with a site if you allow the location request. Without that permission, the site is left with weaker clues such as your IP address.

Does a VPN stop Wi-Fi based positioning?

Generally no. A VPN changes the route your internet traffic takes and the IP address a site sees. Wi-Fi positioning is a separate step that happens on your device and in a location service, so the details vary by browser and operating system. Treat the permission setting as the control that matters.

Do I have to be connected to a Wi-Fi network for this to work?

Not necessarily. Devices can often notice nearby access points without joining them, which is why a position estimate may appear even on mobile data. Whether and how this happens depends on the device, its settings and the browser, so check your own settings rather than assuming.

How accurate is a Wi-Fi based estimate?

It can vary a lot. Dense areas with many networks may give a closer estimate, while sparse areas may give a rougher one or fall back to other signals. No single accuracy figure applies everywhere, so treat any estimate as approximate.

What is the simplest way to keep a site from learning my position this way?

Choose Block or Ask when a site requests location, and allow it only for sites that truly need it, such as a map. You can also review the permission list in your browser and the location settings of your phone or computer.

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

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 read

Privacy Guides

Can Website Permissions Reveal Your Physical Location While Using a VPN?

When you tap Allow on a location prompt, the site gets a reading from your device, not from your VPN. Here is how that works and how to review it.

10 min read

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