Skip to content
VPNDetection

Residential proxy detection: ASN or hosting rules catch 1.09%

We matched 68 million residential proxy IPv4 addresses to their networks. A hosting or ASN rule caught 1.09%. Here's what to check instead.

Published 5 min read

On this page
  1. What a hosting or ASN check catches
  2. Which networks they're on
  3. What works: the address's own history
  4. Step up, don't block
  5. In code
  6. What an IP check can't catch
  7. How we measured

A residential proxy sends a stranger's traffic out through someone's home or phone connection. An app on a phone, a TV box or a laptop relays the requests, and a proxy network rents that connection out by the gigabyte. The site at the other end sees a household's address on a household's ISP, which is why the first rule most developers write, blocking hosting providers' and datacenters' networks, lets it through.

We measured how much that rule misses. Of the 68,010,615 IPv4 addresses we saw relaying residential proxy traffic in the 90 days to November 9, 2026, a hosting or ASN check caught 741,600: 1.09%.

What a hosting or ASN check catches

We checked every one of those addresses against the two rules developers try first: the type of the network that announces it, and our Hosting IP ranges, which answer the API's is_hosting.

The ruleResidential proxy IPv4 it catchesShare
The announcing network's asn.type is hosting546,8180.80%
is_hosting, with hosting.confidence high392,1130.58%
is_hosting, either confidence691,3081.02%
Either rule741,6001.09%

The same pools held another 44,059,428 IPv6 addresses. Every share in this post is IPv4's.

A datacenter ASN list still stops bots on cloud servers, though that post found it a poor VPN filter. Against residential proxies it does next to nothing.

Which networks they're on

The announcing network's typeShare of residential proxy IPv4
ISP98.81%
Hosting0.80%
Education0.22%
Business0.09%
Government0.07%

The last 0.01% were on networks with no type. 51.49% were in mobile operators' address space, their home broadband included. On their mobile networks one public address often carries many subscribers at once, and blocking it blocks everyone behind it; and the mobile proxy post measures how much more a /24 or ASN block takes out.

A rule built from the network can't tell a proxy exit from your customer. They're on the same ISP, and sometimes on the same address.

What works: the address's own history

What sets a proxy exit apart from its neighbors is that it was seen relaying proxy traffic. is_resproxy says that about an address, and its resproxy detail says when: first_seen, last_seen, and hits, how often it was seen. is_mobproxy does the same for mobile proxies. Both are on the API.

How long a sighting counts against an address is the main choice you make. This is when the 90 days' exits were last seen:

Last seen in theResidential proxy IPv4Share of all 90 days
Last day4,940,5177.3%
Last 7 days14,315,80421.0%
Last 30 days34,057,52550.1%
Last 90 days68,010,615100%

A window of a day forgets an address the day it goes quiet, yet a third of IPv4 exits were seen again two months after their first sighting. A window of a year keeps flagging addresses an ISP has since given to another household. The API keeps answering is_resproxy after an address's sightings stop, with last_seen saying how long ago the last one was, so the window is yours to set in code. The lifetime post turns last_seen into a score that fades instead.

Step up, don't block

A proxy exit is also somebody's own connection. The household behind it browses from the same address, and on a mobile operator's network so may many other people. So a hit earns a second step, such as an emailed or SMS code, a CAPTCHA or a card check, rather than a refusal.

Then limit what each account, card and device can do, as well as each address: a proxy network can hand every request a new one, as the rate-limiting post shows.

In code

Here's a signup route on Express with our Express middleware, on a paid plan's key, since it reads the hosting and proxy flags (pricing). Servers and datacenter proxies are blocked. Residential and mobile proxy exits seen in the last 30 days get a second step, as do public proxies, VPNs, Tor and WARP. Private Relay and company gateways pass:

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

const app = express();
app.set('trust proxy', 'loopback');

const screen = vpndetection({ apiKey: process.env.VPNDETECTION_API_KEY });

// Days after its last sighting that a proxy exit still gets a second step.
const WINDOW_DAYS = 30;
const DAY_MS = 24 * 60 * 60 * 1000;

// last_seen is a date, so the address counts as seen until that day's end.
function recent(detail) {
    const end = Date.parse(detail.last_seen) + DAY_MS;
    return Date.now() - end < WINDOW_DAYS * DAY_MS;
}

function signupRule(r) {
    if (r === undefined) return 'allow';  // the lookup failed: fail open
    if (r.isBogon) return 'allow';  // a private address: check 'trust proxy'
    // Private Relay, and company gateways such as Zscaler: real people.
    if (r.isRelay && r.relay.provider !== 'cloudflare_warp') return 'allow';
    // VPNs, Tor and WARP: your policy. Here they get a second step.
    if (r.isVpn || r.isTor || r.isRelay) return 'challenge';
    // Any other server: nobody signs up from one.
    if (r.isHosting || r.isDcproxy) return 'block';
    // Someone's home or phone line, rented out: ask for more, don't refuse.
    if (r.isResproxy && recent(r.resproxy)) return 'challenge';
    if (r.isMobproxy && recent(r.mobproxy)) return 'challenge';
    if (r.isPubproxy) return 'challenge';
    return 'allow';
}

app.post('/signup', screen, (req, res) => {
    const action = signupRule(req.vpndetection.result);
    if (action === 'block') {
        return res.status(403).json({ error: 'Sign up from your own connection.' });
    }
    // Create the account here, and on 'challenge' confirm an emailed code first.
    res.json({ action });
});

app.listen(3000);

The relay check comes first because relay exits answer other flags too. The Private Relay exit in the test answers is_resproxy, 63.7% of Private Relay's IPv4 addresses were on hosting ranges when the Private Relay post counted them, and the WARP exit answers is_hosting and is_dcproxy. Read later, those flags would block or challenge them as servers and proxies.

A 30-day window takes the 50.1% of the 90 days' exits seen since October 11. If the lookup fails, as in an outage, the rule lets the signup through with no second step.

We ran it on November 10, 2026, with Express 5.3.0, vpndetection-express 2.0.23 and Node 22.22.2, and sent /signup one request from each test address, each curl -s -X POST localhost:3000/signup -H "X-Forwarded-For: <address>":

$ ./test.sh
home         {"action":"allow"} 200
relay        {"action":"allow"} 200
mullvad      {"action":"challenge"} 200
tor          {"action":"challenge"} 200
warp         {"action":"challenge"} 200
cloud        {"error":"Sign up from your own connection."} 403
exit_hosted  {"error":"Sign up from your own connection."} 403
exit         {"action":"challenge"} 200
mobile       {"action":"challenge"} 200
exit_sept    {"action":"allow"} 200

home is a US cable broadband line. relay is 172.224.226.10, from Apple's Private Relay egress list, mullvad is 146.70.116.130, from Mullvad's server list, and tor is 190.120.229.98, from the Tor Project's exit list. warp is a Cloudflare WARP exit and cloud a Google Cloud server.

The last four lines are residential proxy exits. exit_hosted is on a hosting network, so the server rule blocks it. exit, on a Turkish ISP, and mobile, on an Indian mobile operator, were last seen on November 9. mobile was challenged on is_resproxy: its last mobile proxy sighting was in June, past the window. exit_sept, on a Brazilian ISP, was last seen on September 6, also past it, though the API still answers is_resproxy for it. We don't print the proxy exits', the WARP exit's, the home line's or the cloud server's addresses.

With no key the hosting and proxy flags are absent: on November 11, 2026, the same requests challenged mullvad, tor and warp and allowed the rest, cloud and exit_hosted included.

trust proxy names the reverse proxy in front of the app, here one on the same machine. Without the right one, the middleware sees your proxy's address instead of the visitor's: a request from the app's own machine logged that it "resolved the client address as ::1, which is not a public address", and the rule let it through on isBogon. The Express post tests the settings that get this wrong.

What an IP check can't catch

An address on its first day in a pool has no history yet. Of the 4,940,517 exits seen on November 9, 391,708 (7.9%) hadn't been seen in a pool since August 12. Pair the check with what the visitor does, and with limits that hold whichever address they come from:

  • Scrapers: why a limit per IP, /24 or ASN misses, and what to key it on instead.
  • Login attacks: what a VPN, hosting or proxy rule catches among brute-force addresses.
  • Card fraud: an exit rented in the cardholder's own town passes a distance check.
  • Free trials: every way to a new address, what it costs, and which ones a check catches.
  • Starlink and mobile networks: where a flagged address is shared by real users.
  • Free blocklists: how much of a day's exits a free daily list holds.

How we measured

Every IPv4 address with a residential proxy sighting in the 90 days to November 9, 2026, matched as of November 10 to the network announcing it in public BGP routing data and that network's type, to our Hosting IP ranges, and to the address space of mobile operators. The lookups ran against the live API on November 10. Every field is in the docs.

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 · Try it

Free lookups, no sign-up.

Paste it into a terminal. Any address answers its VPN, Tor, relay and anycast flags, where it is, which network announces it and its hostname.

curl "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": ""
}
01 · Sign up

Try every field, free.

A daily allowance of every field, the evidence behind each flag included.
Past it, lookups answer the basics, with no cap.
No card and no sales call: the key is issued on signup.
The Data plan answers every field on every lookup.