Skip to content

Glossary

VPN: virtual private network and IP detection

A VPN encrypts traffic and sends it through a provider's server, hiding the user's real IP. How VPNs work, how detection works and how to treat VPN traffic.

Updated 2026-11-23

A VPN, virtual private network, wraps a user's traffic in an encrypted tunnel to a server run by a provider, which then forwards it to the internet. The destination sees the server's IP address and its location, not the user's. The same technology also joins remote workers to company networks.

How it works

The device runs a VPN client that uses a tunneling protocol such as WireGuard, OpenVPN or IPsec. All, or selected, traffic goes through the tunnel to the provider's server, where it exits.

Part Role
Client Encrypts traffic, sends it to the server
VPN server Decrypts, forwards, receives replies
Exit IP address What websites see

Consequences for the destination: the visible IP geolocates to the server's place, not the user's, and many users share one address. That is useful for privacy and the reason abusers like it.

Detection is based on knowing where VPN servers live. Providers rent servers in data centers, so their addresses sit in hosting networks, and lists of known provider addresses exist. A few ways to detect:

  • Known provider ranges. Match the address against curated lists.
  • Hosting ASN. Home users do not browse from server networks, see datacenter IP.
  • Inconsistencies. Time zone, language or latency at odds with the IP location.

What detection cannot do: find a VPN built on a home connection, or on a network not on the list. Services that route through residential connections avoid it, see residential proxy. VPNs and proxies are related but not identical: a VPN tunnels all traffic at the network level, a proxy relays requests for particular applications.

For wider context, read VPN detection.

Why it matters for validation

In the IP API, flags.vpn is true when the address belongs to a known VPN provider's network. It is best effort: a VPN that runs on networks Qelka does not know is not flagged, and false means not detected, not clean. flags.datacenter adds a second angle when the exit sits on a hosting network.

How to apply it:

Situation Suggested response
Content, newsletter Ignore
Account creation Add a confirmation step
Payments, promotions Add friction, review with other signals
Streaming or licensed content Follow your rights agreements

Always combine the VPN flag with fraud score signals instead of using it alone. The guide flag VPN and datacenter traffic shows an implementation, and the VPN and proxy detection tool lets you test an address.

Frequently asked questions

What is a VPN?
A virtual private network creates an encrypted tunnel between a device and a server run by the VPN provider. Websites then see the server's IP address instead of the user's. People use VPNs for privacy, to protect traffic on public Wi-Fi, to reach company networks and to access content from other countries.
Can a website detect a VPN?
Often, but not always. Providers use known networks, so lists of VPN server addresses and hosting networks catch many. Detection is best effort: a provider that uses new addresses or home connections is missed. A negative result means not detected, not proven clean.
Should I block VPN users?
Rarely as a blanket rule. Most VPN users are ordinary people protecting their privacy or travelling. Block or add checks only where abuse is costly, such as payments, promotions or account creation, and combine the VPN signal with others. Offer a way through, such as a code by email.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time