Cybersecurity

Can IP Geolocation Detect VPNs and Proxies?

How IP geolocation databases flag VPNs, proxies, and Tor exit nodes — and why detection accuracy varies wildly between providers and methods.

By Inventive HQ Team

Plain IP geolocation cannot tell that you are using a VPN — it only reports where the VPN's exit server sits, so it shows that server's city and country, not yours. Detecting the VPN itself is a separate layer that classifies the IP's network as a datacenter or hosting provider, checks it against commercial VPN/proxy intelligence lists, and watches for behavioral tells like many users sharing one address. That layered approach catches most ordinary commercial VPNs and virtually all Tor exit nodes, but it is far from perfect: residential proxies and freshly rotated IP ranges routinely slip through, and any single signal can produce a false positive.

That is the summary an AI overview would give you. The part it can't give you is how each detection signal actually works, why the same VPN gets blocked on one site and sails through on another, and where your real location can still leak even when the IP layer is doing its job. This article is the map of those signals.

Want to check what an IP reveals right now? Try our free IP Geolocation Lookup to geolocate any IP and see its network details — including the owning organization and ASN that detection engines lean on.

Loading interactive tool...

The core idea: geolocation vs. detection are two different questions

The single most common confusion here is treating "where is this IP?" and "is this IP a VPN?" as the same lookup. They are not.

How a VPN hides your real IP and what detection sees Your real IP travels through an encrypted tunnel to a VPN exit server; the website only sees the exit IP, and a detection engine flags it using ASN, blocklist, and behavioral signals. Geolocation shows the exit; detection is a separate layer You Real IP: 203.0.113.7 (hidden from site) encrypted tunnel VPN exit server Exit IP: 198.51.100.9 Amsterdam · AS-hosting Detection engine • Datacenter ASN? • On VPN blocklist? • Shared by many? • TZ / DNS mismatch? !

Geolocation of 198.51.100.9 = Amsterdam. The site never sees 203.0.113.7 — unless a WebRTC or DNS leak exposes it.

When you connect through a VPN, the website you visit only ever sees the exit server's IP. Geolocating that IP truthfully returns the exit server's location — that is geolocation working correctly, not failing. The interesting question, "is this a VPN?", is answered by a completely different set of signals layered on top of the raw location lookup.

The detection signals, and how each one works

There is no single "VPN flag." Providers combine the signals below, weighting them and requiring several to agree before they block. Here is what each signal is and how reliable it is in practice.

Detection signalHow it worksReliability
Datacenter / hosting ASNEvery IP belongs to an Autonomous System (a network) with a known owner. Home users originate from consumer-ISP ASNs; VPN exits almost always sit in datacenter or cloud-hosting ASNs (AWS, OVH, DigitalOcean, dedicated VPN ranges). An IP owned by a hosting company is the single strongest tell.High for ordinary VPNs; useless against residential proxies
Commercial IP-intelligence listsServices like IPQualityScore, MaxMind, IP2Location, and Spur maintain continuously updated databases of known VPN/proxy IPs, harvested by buying the services and recording their exit addresses. A hit is near-certain.High, but only as fresh as the feed; new IPs lag
Public blocklists (Tor, open proxies)The Tor Project publishes an authoritative list of all exit nodes; open-proxy scanners publish theirs. Matching against these gives near-perfect detection for those categories.Very high for Tor and known open proxies
WebRTC / DNS leaksNot a server-side IP check — a client-side leak. WebRTC can expose the device's real IP via browser JavaScript, and DNS queries escaping the tunnel reveal the true resolver. Catches the real user, not just the VPN.High when the leak exists; a well-configured VPN blocks it
Latency / timezone / locale mismatchCompares the claimed IP location against physics and browser hints: round-trip latency inconsistent with the distance, a device timezone or Accept-Language that contradicts the IP's country, or "impossible travel" between logins.Medium — a strong corroborating signal, weak alone
Open ports & protocol fingerprintScanning the IP for VPN service ports (OpenVPN 1194, WireGuard 51820) or fingerprinting the TLS/protocol handshake. Increasingly evaded by running on 443 with obfuscation.Low–medium and declining as obfuscation spreads
Behavioral / shared-IP analysisMany unrelated accounts hitting one IP, persistent high-bandwidth sessions, or abnormal request volume. This is the fallback that catches residential proxies with no datacenter fingerprint.Medium; the main lever against residential proxies

The practical upshot: the top three rows catch the vast majority of consumer VPNs cheaply, and the bottom rows exist to catch what those miss. A basic site checking only ASN will block NordVPN's datacenter ranges but wave through a residential proxy; a streaming service running an aggressive commercial feed plus behavioral analysis catches far more.

Advertisement

Why the same VPN is blocked on one site and works on another

Detection is not a property of the VPN — it is a property of the checker. Three variables decide the outcome:

  • IP reputation. A popular VPN server whose IP thousands of users have hammered is on every blocklist; a fresh, unlisted IP in an obscure hosting provider passes until it is discovered. Providers fight this by constantly rotating and buying new ranges.
  • How aggressive the checker is. A small site doing one ASN lookup is easy to pass. A streaming service or bank paying for a frequently updated commercial feed and layering behavioral analysis is not.
  • Cost tolerance for false positives. Blocking every datacenter IP also blocks legitimate corporate VPNs and cloud-based tools, so many sites deliberately tune detection loose to avoid angering real customers — which lets some VPNs through by design.

This is why VPN detection is a moving target rather than a solved problem. It is the same cat-and-mouse dynamic as spam filtering: each side adapts to the other continuously.

Where your real location can still leak

Even when the IP layer behaves — geolocation shows the exit, detection may or may not flag it — your true location can escape through channels that bypass the tunnel entirely:

  • WebRTC leaks. The browser's real-time communication API can hand a web page your actual local and public IP via JavaScript, sidestepping the VPN. This is the most common real-IP leak. Block WebRTC or confirm your VPN forces it through the tunnel.
  • DNS leaks. If DNS queries go to your ISP's resolver instead of through the VPN, the resolver's location (and your query history) is exposed.
  • Timezone and locale. A US exit IP paired with a browser set to Europe/Moscow and Russian language headers is a giveaway that corroborates other signals.
  • Account and cookie history. None of this matters if you log into an account that already ties the session to your identity.

A correctly configured modern VPN with leak protection closes the first two. The last two are on you.

The hardest case: residential proxies

Residential proxies are the reason "just block datacenter IPs" is not a complete answer. They route traffic through IP addresses assigned by consumer ISPs to real homes — sourced from SDK-bundled apps, browser extensions, or compromised devices. Because the exit IP carries a legitimate residential ASN and a plausible geolocation, the datacenter and blocklist signals that catch ordinary VPNs simply do not fire.

Detecting them means falling back to behavior: a single "household" IP suddenly serving thousands of requests, many unrelated accounts sharing it, impossible travel between logins, or automation-shaped request timing. This is slower, more expensive, and more error-prone than an ASN lookup — which is exactly why residential proxies command a premium in the fraud and scraping markets.

Tor is the easy case

Tor sits at the opposite end. Because the Tor Project publishes a complete, authoritative list of every exit node, any service can download it and block or challenge those connections with near-perfect accuracy — no commercial feed required. Geolocation still just shows the exit relay's location, but the public exit list makes Tor detection far more reliable than VPN detection. If you want to do this yourself, see How to Check if an IP Is a Tor Exit Node.

What this means if you are building detection

If you are implementing IP-based security or access policies, treat VPN/proxy status as a signal, not a verdict:

  • Start with ASN classification and a reputable commercial feed — that combination is cheap and catches most consumer VPNs.
  • Add behavioral analysis only where residential proxies are a real threat (fraud, credential stuffing, ticket scalping); it is where the cost lives.
  • Expect false positives. Corporate VPNs, cloud-hosted tools, and shared CGNAT IPs all look suspicious. Use VPN status to raise friction (a second verification step) rather than to hard-block, unless the stakes justify it.
  • Keep your feeds fresh. Detection accuracy decays daily as IPs rotate. A stale database is worse than useless because it produces confident wrong answers.
  • Respect the privacy dimension. VPN use is legitimate — privacy protection, accessing a home network, evading censorship. Regulations like GDPR constrain profiling on it, and blanket blocking punishes ordinary users. Detection is a tool, and how you act on it is a policy choice with legal weight.

The bottom line

IP geolocation does not detect VPNs — it faithfully reports the location of whatever IP it is handed, which for a VPN user is the exit server. VPN and proxy detection is a separate layer built from ASN classification, commercial IP-intelligence lists, public blocklists, leak channels, and behavioral analysis. That layer is strong against ordinary commercial VPNs, near-perfect against Tor, and genuinely weak against residential proxies and freshly rotated infrastructure. No consumer VPN is 100% undetectable, but none is 100% detectable either — the honest answer is a probability, not a yes or no, and the number depends far more on who is checking than on which VPN you use.

Frequently Asked Questions

Can IP geolocation detect a VPN?

Not directly — and this is the key distinction. Plain IP geolocation only tells you where an IP address is physically located, so when you use a VPN it faithfully reports the location of the VPN's exit server, not you. Detecting that the IP belongs to a VPN is a separate layer: it relies on classifying the IP's network (its ASN) as a datacenter or hosting provider, checking it against commercial VPN/proxy intelligence lists, and watching for behavioral tells like many users sharing one address. So geolocation shows the fake location; VPN detection is a second signal layered on top, and it is good but not perfect.

Does geolocation show my real location if I use a VPN?

No. Geolocation resolves the IP address the website sees, and with a VPN that is the exit server's IP — so it shows the VPN server's city and country, not yours. The main way your real location can still leak is outside the IP layer: a WebRTC leak can expose your true local/public IP in the browser, DNS requests can escape the tunnel, and your device timezone or language settings can contradict the claimed location. A correctly configured VPN with leak protection prevents these, but a misconfigured one does not.

How do websites know I am using a VPN?

They combine signals rather than relying on any single one. The strongest is that most VPN exit IPs sit inside datacenter or hosting ASNs — address ranges that legitimate home users almost never originate from — so an IP owned by a cloud/hosting company is immediately suspicious. On top of that they query commercial IP-intelligence services (IPQualityScore, MaxMind, IP2Location, Spur, etc.) that maintain lists of known VPN/proxy IPs, watch for many accounts hitting the same IP, and look for mismatches such as a US IP with a browser set to a Moscow timezone. Any one signal can be wrong; several agreeing is what triggers a block.

Can a VPN be completely undetectable?

No consumer VPN is 100% undetectable, but detectability is a spectrum. Standard commercial VPNs on datacenter IPs are easy to flag. Providers reduce detection by rotating IP ranges, buying addresses that are not yet on blocklists, and offering obfuscated or "stealth" protocols that make the traffic look like ordinary HTTPS. The hardest to detect are residential proxies, which route traffic through real consumer ISP IP addresses so they carry no datacenter fingerprint at all. Even those, though, can be caught by behavioral analysis when one "home" IP suddenly serves thousands of requests.

Why do some VPNs get detected and others do not?

It comes down to the IP's reputation and network type. A VPN endpoint on a fresh, unlisted IP inside a low-profile hosting provider can pass for a while; a popular server whose IP has been shared by thousands of users is already on every blocklist. Detection also depends on who is checking — a streaming service with an aggressive, frequently updated commercial feed catches far more than a small site doing a basic ASN lookup. This is why the same VPN works on one site and is blocked on another, and why a server that worked yesterday gets flagged today.

What is a residential proxy and why is it so hard to detect?

A residential proxy routes traffic through IP addresses assigned by consumer ISPs to real homes — often sourced from SDK-bundled apps, browser extensions, or compromised devices whose owners may not realize they are relaying traffic. Because the exit IP looks exactly like a normal household connection (correct ISP, residential ASN, plausible geolocation), the datacenter and blocklist signals that catch ordinary VPNs do not apply. Detection has to fall back on behavior: unusually high request volume from a single residential IP, many unrelated accounts sharing it, or impossible travel between logins.

Can Tor be detected by IP geolocation?

Yes, and Tor is one of the easiest anonymity tools to flag. The Tor Project publishes a public, authoritative list of every exit node, so any service can download it and block or challenge connections from those IPs with near-perfect accuracy. Geolocation itself still just shows the exit relay's location, but because the exit list is public and complete, Tor detection is far more reliable than VPN detection. Our guide on how to check if an IP is a Tor exit node walks through doing this yourself.

Does a WebRTC leak reveal my real IP behind a VPN?

It can. WebRTC is a browser feature for peer-to-peer audio, video, and data that, to establish connections, may query your device for its local and public IP addresses and expose them to a web page via JavaScript — potentially revealing your true IP even while a VPN is active. This is a browser-level leak that bypasses the VPN tunnel entirely rather than a flaw in geolocation. Reputable VPN apps and browser settings can block WebRTC or force it through the tunnel; if yours does not, a site can see the real address the VPN was supposed to hide.

VPN detectionproxy detectionIP maskingnetwork security