How to Check Whether an IP Is a VPN or Proxy with a Simple API
When a user signs up or logs in, their IP address can tell you something about the network they are coming from. It can also be misleading. A hosting IP is not automatically a VPN. A company gateway may be a proxy by de
When a user signs up or logs in, their IP address can tell you something about the network they are coming from. It can also be misleading.
A hosting IP is not automatically a VPN. A company gateway may be a proxy by design. A home router can answer a VPN handshake because its owner runs a private server.
That is why I prefer checking the evidence behind an IP verdict instead of relying on one yes/no flag.
A quick API check
curl https://iplogs.com/v1/check/8.8.8.8
Or send a POST request:
curl https://iplogs.com/v1/check \
-H 'content-type: application/json' \
-d '{"ip":"8.8.8.8"}'
The response includes a verdict, a score from 0 to 1, flags such as is_vpn, is_proxy and is_tor, plus matched signals and network details.
Don't treat the score as a probability
The score is an evidence score, not a statistical probability that a person is using a VPN. Read the matched signals and network context before deciding what to do.
A useful policy is to step up verification for suspicious traffic rather than automatically blocking every unusual address. That helps avoid locking out people on shared mobile networks, corporate gateways or privacy relays.
A few production notes
- Full checks include live probes; fast mode and bulk checks do not.
- The free tier currently includes 2,000 full checks per day per calling address, with a 60-request-per-minute limit.
- Bulk requests accept up to 100 IPs and skip live probes.
- Residential peer-to-peer proxies are difficult to identify from IP data alone.
I work on IPLogs, so this is also a look at a tool we are building. The docs include response fields, limits and examples:
If you have built IP risk checks into a login or signup flow, which signals have been useful — and which caused false positives?
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.