Skip to content
VPNDetection

Is an IP address personal data? A VPN check under the GDPR

An IP address is personal data for a site that knows its users. What the GDPR asks of a VPN check, and code that sends only the address.

Published 7 min read

On this page
  1. Why an IP address counts as personal data
  2. What EDPS v SRB added in 2025
  3. Your lawful basis is usually legitimate interest
  4. Send the address, keep the verdict
  5. What we keep, and where
  6. Or keep every address on your own servers
  7. Proxy exits, with a paid plan's key
  8. What to take to your DPO

Yes, for almost any site that checks its own visitors. The GDPR counts "an online identifier" as something that can identify a person, and its Recital 30 names "internet protocol addresses" first among them. For a site that knows its users, the address you send to a VPN check is personal data, and the lookup is processing that needs a lawful basis. This post covers what that means in code, and what we keep when you send us an address. It's about the engineering, not legal advice.

Why an IP address counts as personal data

The leading case is Breyer (C‑582/14, October 19, 2016). German federal websites logged their visitors' addresses to fight denial-of-service attacks. The Court of Justice held that a dynamic IP address a website records is personal data for that website "where the latter has the legal means which enable it to identify the data subject with additional data which the internet service provider has about that person". The Court noted that German law appeared to let the site go to the authorities after an attack, and they could get the subscriber's name from the provider. That was under the directive the GDPR replaced, and the GDPR kept the same test: Recital 26 asks what means are "reasonably likely to be used" to identify someone.

Most addresses are someone's connection. Our ASN data on November 17, 2026 puts 63% of the 3.14 billion IPv4 addresses it covers on ISP networks, mostly homes and phones, and 15% on hosting networks, where they're mostly machines. You can't tell which kind a visitor's address is until you've looked it up, and the lookup is processing too.

What EDPS v SRB added in 2025

On September 4, 2025, the Court decided EDPS v SRB (C‑413/23 P). The Single Resolution Board had sent pseudonymized comments to Deloitte, which held no key to tell whose they were. The case was under the regulation for EU institutions, whose definitions match the GDPR's, and it said two things:

  • Pseudonymized data "must not be regarded as constituting, in all cases and for every person, personal data". Data a recipient has no reasonable means to link to anyone may not be personal data for that recipient.
  • For the duty to tell people who receives their data, whether they're identifiable is judged "at the time of collection of the data and from the point of view of the controller". So the board's duty to tell commenters their comments could go to Deloitte applied before the transfer, whatever the comments were to Deloitte.

For a site checking its own visitors, the second point is the one that applies. You know who your users are: they sign up with an email, and you see the address beside the account. So the address is personal data for you whatever it is to the service you send it to. Your privacy notice names that service, or its category, as a recipient, and its terms say how it handles the address. Ours say that an address "is a query, not a record about a person we hold for you", and that "where a look-up is nevertheless personal data in your hands, because you have linked it to an individual in your own systems", we process it as your processor (DPA, section 2).

A line for your notice can be this short:

We send the IP address you connect from to VPNDetection, our processor, to check whether it belongs to a VPN, a proxy or Tor, so we can prevent fraud and abuse.

Your lawful basis is usually legitimate interest

Consent doesn't fit a fraud check, since the people you most want to check would refuse it. Article 6(1)(f), legitimate interest, does, and the GDPR names this use itself. Recital 47: "The processing of personal data strictly necessary for the purposes of preventing fraud also constitutes a legitimate interest of the data controller concerned." Breyer's second ruling points the same way: German law couldn't rule out in advance that keeping a site running justifies using its visitors' addresses, which has to be weighed case by case.

Legitimate interest needs a balancing test, written down. Here's one for a sign-up check, to adapt to your own service:

Purpose:   stop fake and abusive sign-ups that arrive through VPNs, proxies and Tor.
Necessity: the address is the only data sent; nothing else shows a masked
           connection before an account exists.
Balance:   people expect fraud checks at sign-up; a flag asks for email
           verification and refuses no one; the address is not stored with
           the account, and each address and its answer are held in memory
           for 10 minutes.

Article 22 gives people the right not to be subject to a decision "based solely on automated processing" that has legal or similarly significant effects. A flag that asks for one more check, rather than turning someone away, leaves them a way in. Our DPA asks the same of you: "You must not use the Service as the sole basis for a decision producing a legal or similarly significant effect on a person" (section 9).

Send the address, keep the verdict

Article 5(1)(c) asks that personal data be "limited to what is necessary". For a VPN check, that's the address and nothing else. Here's a sign-up route in Express with vpndetection-express 2.0.31, with its key in VPNDETECTION_API_KEY: a free one, from the console, answers everything up to the paid section.

js
import express from 'express';
import { vpndetection } from 'vpndetection-express';

const app = express();
app.set('trust proxy', 'loopback');  // nginx on this machine; name your own proxy
app.use(express.json());

// Sends the visitor's address, and only that, to the API.
const checkNetwork = vpndetection({
    apiKey: process.env.VPNDETECTION_API_KEY,
    cache: { ttlMs: 10 * 60 * 1000 },  // hold each address and answer 10 minutes
});

const accounts = new Map();

// Mounted on the form's POST alone, so a visitor who only views it isn't looked up.
app.post('/signup', checkNetwork, (req, res) => {
    const { result, error } = req.vpndetection;
    let network = 'unchecked';
    if (result && !result.isBogon) {
        const masked = result.isVpn || result.isTor;
        network = masked ? 'masked' : 'clear';
    }
    // The account and the log keep the verdict, never the address.
    accounts.set(req.body.email, { network });
    console.log(JSON.stringify({ event: 'signup', network, error: error?.kind }));
    res.json({ network, next: network === 'masked' ? 'verify-email' : 'done' });
});

app.listen(3000);

We signed up three times through it, each time with a browser's user agent and a session cookie: from a Mullvad server in Berlin, 193.32.248.66, then from a home broadband line in the US, then from the Mullvad server again. The responses:

json
{"network":"masked","next":"verify-email"}
{"network":"clear","next":"done"}
{"network":"masked","next":"verify-email"}

The app's log, with no address in it:

json
{"event":"signup","network":"masked"}
{"event":"signup","network":"clear"}
{"event":"signup","network":"masked"}

To see what left the server, we pointed the app at a forwarder that logged each request to our API. There were two:

http
GET /193.32.248.66 HTTP/1.1
host: api.vpndetection.io
connection: keep-alive
accept: */*
accept-language: *
sec-fetch-mode: cors
user-agent: node
accept-encoding: br, gzip, deflate

The second was the same, with the home line's address in the path. The third sign-up was answered from the middleware's memory and sent nothing, and a GET /signup to view the form sent nothing either. None of the visitor's email, cookies, user agent or the page they were on went with the address. Your key goes in an authorization header on each request, which names your organization and not the visitor. With the API unreachable, the route still worked and logged {"event":"signup","network":"unchecked","error":"network"}: the middleware lets a request through when a lookup fails, and unchecked records that no check ran.

Diagram of a sign-up check: the visitor's address, email, cookie, user agent and page reach your server; only the address goes to the VPNDetection API, which keeps the time and address for 13 months; your server caches the address and answer 10 minutes; your account and log keep the verdict.

network: 'masked' on the account answers the question you'll have later, why a sign-up got an extra check, without the address. The middleware keeps each address and its answer in memory, for an hour by default; we set 10 minutes, as in the balancing note, and nothing is written to disk. If you call the API yourself, send the address alone, with no user ID or email. Your web server and load balancer already log every visitor's address, so their retention belongs in the same note.

What we keep, and where

This is what our DPA (updated November 2, 2026) and privacy policy (updated November 17, 2026) say, quoted:

  • Where: "The Service is hosted in the European Union", by Hetzner in Finland. Section 4 of the DPA lists each sub-processor and where it processes, the United States included, and section 8 says what each transfer out of the EEA relies on. A new sub-processor comes with at least 30 days' notice.
  • How long: the privacy policy says "Records of API requests, holding the time, the address looked up and, where there is one, the key and organization that made it, are kept for 13 months, for billing questions, support and abuse investigation." The DPA adds: "They are not used to build records about the addresses in them."
  • What for: we act "only on your documented instructions", and won't "use personal data processed on your behalf to train machine-learning or AI models". Our classification data is "not derived from the queries our customers make".
  • If something goes wrong: notice of a personal data breach "without undue delay, and in any event within 72 hours".

Ask any service where it processes the address, how long it keeps each lookup's record and what's in it, and whether it builds its own data from your lookups.

Or keep every address on your own servers

Our databases answer the same question from a file you download, so a lookup never leaves your network. Tor IP, Relay IP and Relay Provider are free to every account under CC BY-SA 4.0, and the rest are licensed per database. That's a bigger job than an API call: you load each day's file and keep it current.

Proxy exits, with a paid plan's key

A residential proxy exit passed as clear. A paid plan's key, from the console, answers isResproxy and isPubproxy too: passed as apiKey in place of the free key, with both in masked, it caught that exit. On a free key they're absent, which reads as no (pricing).

What to take to your DPO

Your data protection officer, or whoever answers for the GDPR at your company, decides this for your service. Bring them the balancing note, the line for your privacy notice, the service's DPA and its sub-processor list, and how long your own logs keep addresses.

Middleware for Express and other frameworks is in the docs, and the API page shows what each lookup returns. For logging an age-gate decision without the address, see our post on the Online Safety Act.

Written by

  • Uman Shahzad

    Founder & CEO

    Uman has worked on IP data for over eight years, including as lead engineer at IPinfo. He built systems and practices that IP data companies now use to run at scale and keep their data accurate.

Get new posts by email

Or follow along in a feed reader.

RSS feed

Try it on your own traffic.

The detection these posts describe is one API call away, with SDKs for every major language.

00 · The answer

One call per address.

Send your key with any address, and a free key answers its VPN, Tor, relay and anycast flags, where it is, which network announces it and its hostname.

curl -H "X-Api-Key: YOUR_KEY" "https://api.vpndetection.io/146.70.116.130"
{
"ip": "146.70.116.130",
"is_bogon": false,
"is_vpn": true,
"is_relay": false,
"is_tor": false,
"is_anycast": false,
"relay": {},
"tor": {},
"location": {
"continent": "EU",
"continent_name": "Europe",
"country": "AT",
"country_name": "Austria",
"timezone": "Europe/Vienna",
"currency_code": "EUR",
"currency_name": "Euro",
"currency_symbol": "€",
"flag_emoji": "🇦🇹",
"flag_unicode": "U+1F1E6 U+1F1F9"
},
"asn": {
"asn": 9009,
"name": "M247 Europe SRL",
"domain": "m247global.com",
"prefix": "146.70.116.0/24",
"country": "RO",
"rpki_status": "not_found"
},
"hostname": "",
"cap_reached": false
}
01 · Sign up

Detect VPNs with a free key.

A quota of 50,000 lookups a month with the VPN flag, Tor, relay, country and ASN.
No card and no sales call: the key is issued on signup.
Look up any address in your console, with a history of each lookup.
API analytics: your lookups by key, status, country and network.
Usage alerts by email before your quota runs out.
The Tor IP, Relay IP and Relay Provider databases to download.
The Data plan answers every field on every lookup.