# 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.

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](https://vpndetection.io/databases/hosting-ip) ranges, which answer the API's `is_hosting`.

| The rule | Residential proxy IPv4 it catches | Share |
| -- | --: | --: |
| The announcing network's `asn.type` is `hosting` | 546,818 | 0.80% |
| `is_hosting`, with `hosting.confidence` `high` | 392,113 | 0.58% |
| `is_hosting`, either confidence | 691,308 | 1.02% |
| Either rule | 741,600 | 1.09% |

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

A [datacenter ASN list](https://vpndetection.io/blog/block-datacenter-asn-vpn) 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 type | Share of residential proxy IPv4 |
| -- | --: |
| ISP | 98.81% |
| Hosting | 0.80% |
| Education | 0.22% |
| Business | 0.09% |
| Government | 0.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](https://vpndetection.io/blog/mobile-proxy-detection-phone-networks) 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](https://vpndetection.io/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 the | Residential proxy IPv4 | Share of all 90 days |
| -- | --: | --: |
| Last day | 4,940,517 | 7.3% |
| Last 7 days | 14,315,804 | 21.0% |
| Last 30 days | 34,057,525 | 50.1% |
| Last 90 days | 68,010,615 | 100% |

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](https://vpndetection.io/blog/how-long-do-residential-proxy-ips-last). 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](https://vpndetection.io/blog/rate-limit-residential-proxy-scrapers) shows.

## In code

Here's a signup route on Express with our [Express middleware](https://docs.vpndetection.io/integrations/express), on a paid plan's key, since it reads the hosting and proxy flags ([pricing](https://vpndetection.io/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](https://vpndetection.io/blog/block-icloud-private-relay) 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](https://mask-api.icloud.com/egress-ip-ranges.csv), `mullvad` is `146.70.116.130`, from [Mullvad's server list](https://mullvad.net/en/servers), and `tor` is `190.120.229.98`, from the Tor Project's [exit list](https://check.torproject.org/torbulkexitlist). `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](https://vpndetection.io/blog/detect-vpn-users-express-js#get-the-client-address-right) 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](https://vpndetection.io/blog/rate-limit-residential-proxy-scrapers): why a limit per IP, /24 or ASN misses, and what to key it on instead.
- [Login attacks](https://vpndetection.io/blog/block-vpn-login-page-brute-force): what a VPN, hosting or proxy rule catches among brute-force addresses.
- [Card fraud](https://vpndetection.io/blog/ip-address-distance-fraud-check): an exit rented in the cardholder's own town passes a distance check.
- [Free trials](https://vpndetection.io/blog/free-trial-abuse-vpn): every way to a new address, what it costs, and which ones a check catches.
- [Starlink](https://vpndetection.io/blog/starlink-flagged-as-vpn-proxy) and [mobile networks](https://vpndetection.io/blog/mobile-proxy-detection-phone-networks): where a flagged address is shared by real users.
- [Free blocklists](https://vpndetection.io/blog/residential-proxy-blocklist): 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](https://docs.vpndetection.io).

