Skip to content

Help center

How to detect VPN and proxy users

Detect Tor, VPN, proxy and data center traffic from an IP address, understand what the flags can miss, and decide what to do without blocking real users.

Updated 2026-11-23

Look up the IP address and read the flags and the network type. Tor exit nodes are listed exactly. VPN and proxy detection is best effort, so a false flag means not detected, not proven clean. Use the flags to add a step or a review, not to block people.

What the signals mean

Flag How it is set Limits
tor The address is on the Tor Project's list of exit nodes. Only exit nodes are listed.
vpn The address belongs to a known VPN provider's network. Best effort. Unknown networks pass.
proxy The address belongs to a known proxy network. Residential proxies are generally not detectable.
datacenter The network is classified as hosting. Cloud desktops and corporate gateways also sit on hosting networks.

For background, see VPN, proxy server, residential proxy, Tor exit node and data center IP. VPN detection explains the methods.

Free way

  1. Open VPN and proxy detection and enter the address.
  2. Read the Tor, data center and VPN results. The tool is best effort and publishes its sources.
  3. For context, add the IP lookup, which shows the network and its type.

With the API

bash
curl https://api.qelka.com/v1/ip \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip": "8.8.8.8"}'

It costs 1 credit. Use a public address from your logs. Read:

json
{
  "asn": { "number": 15169, "org": "Google LLC", "type": "hosting" },
  "flags": { "tor": false, "vpn": false, "proxy": false, "datacenter": true },
  "risk": { "score": 35, "level": "medium" }
}
Field Use
flags.tor, flags.vpn, flags.proxy, flags.datacenter The four signals.
asn.type hosting backs up datacenter. mobile means shared addresses.
risk.level low is 0 to 29, medium 30 to 69, high 70 to 100.

Values are illustrative. See the IP reference and the guide flag VPN and data center traffic.

Decide what to do

Situation Suggested action
Newsletter signup Accept.
Free trial Accept and require a code, or limit usage.
Payment or payout Hold for review when flags are set, together with other signals.
Login from a new address Ask for a second factor.
Tor on a service that forbids it Block, and say why.

Combine flags with the rest of the signup: email check, phone check, how fast the form was filled. See Stop fake signups without CAPTCHA.

Common mistakes

  • Reading false as safe. It means not detected.
  • Blocking every flagged visitor. You lose real customers and corporate users.
  • Looking up your own server's address. Read the client address from your proxy's header.
  • Ignoring shared addresses. Mobile networks put many people on one IP.
  • Looking up private addresses. They return 422 and are not billed.

Frequently asked questions

Can you detect every VPN user?
No. Detection works by matching an address to known VPN, proxy, Tor and hosting networks. A VPN running on networks that are not on the list passes, and residential proxies, which route traffic through home connections, are generally undetectable. A false flag means not detected, not proven clean. Use flags as one signal among several.
Should I block VPN users?
Usually not outright. Many people use a VPN for privacy, for work or on public Wi-Fi. Blocking them turns away real customers. Better rules are to add a step, such as a one-time code, to lower limits on trials, or to hold payouts for review. Block only where the law or your contract demands it.
What is the difference between a VPN, a proxy and Tor?
All three send your traffic through another address. A VPN encrypts the connection to a provider's server. A proxy forwards requests for one application, often without encryption. Tor routes traffic through several volunteer relays, and the last one is the exit node that sites see. Each shows a different address to the site you visit.

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