How to detect residential proxies

Advanced5 min readUpdated

GET /learn/detection/how-to-detect-residential-proxies/ Accept text/html text/markdown

Short answer

No single test reliably detects residential proxies, because their exit IPs belong to real home and mobile connections. Combine weaker signals: proxy intelligence feeds, a gap between TCP and TLS round-trip times, a TCP fingerprint that does not match the claimed operating system, time zone and language that do not fit the IP location, and one device appearing from many IPs or subnets.

A residential proxy sends a bot's traffic out through someone's home broadband or phone connection. The IP your server sees belongs to a consumer ISP or a mobile carrier, often to a household where a real person browses at the same time. That makes these proxies the hardest network signal to get right. No check gives certainty, so the goal is to collect enough weak evidence to justify a proportionate response. For how the networks are built and sold, see what residential proxies are.

Why are residential proxies hard to detect?

The exit IPs sit in the same ASNs (the networks that own IP ranges) as your real customers, so network type looks normal. The same IP is often used by the device owner, and mobile carriers put many subscribers behind one IP with carrier-grade NAT, so blocking an IP can block real people. Large pools can hand out a new IP on every request or every few minutes, so reputation lists fill up after the traffic has moved on.

What can IP and ASN data still tell you?

Some proxies called "residential" are not. ISP proxies, sometimes sold as static residential, use IP ranges registered to an ISP but run on servers in data centres. Their ASN looks residential while their connection timing and TCP fingerprint look like a server, which the checks below expose.

Commercial proxy intelligence feeds find true residential exits in two main ways: some route test traffic through proxy services and record the exit IPs they are given, and others watch how IPs behave across many sites. Their coverage is partial and freshness matters: an IP seen as a proxy exit an hour ago is far stronger evidence than one seen last month. Use a feed match as a weight in your score, keep the "last seen" time, and do not block on it alone.

Do the connection timings match?

With HTTP CONNECT or SOCKS proxies, the TCP connection ends at the exit device, but TLS runs end to end between the bot and your server. That gives two round-trip times you can measure where you terminate TLS:

  • The TCP handshake round trip, from your SYN-ACK to the client's ACK, which covers only the path to the exit device.
  • The TLS handshake round trip, from your server's handshake flight to the client's reply, which covers the path to the exit and on to the bot.

For a direct client the two are close. For a proxied client, the TLS round trip is much longer than the TCP one. The JA4+ suite includes JA4L, a method for these latency measurements (note that it is under the FoxIO License, not the open BSD licence of JA4). Mobile and Wi-Fi connections are noisy, so compare against other clients on the same ISP and act on large gaps only. The same comparison works with a round trip timed in JavaScript against the TCP round trip measured at your server.

Does the TCP fingerprint match the browser?

The TCP SYN packet comes from the exit device's operating system, while the User-Agent and TLS fingerprint come from the bot's own software. The initial TTL, window size, maximum segment size and order of TCP options differ between operating systems. Windows usually starts packets with a TTL of 128, while Linux, Android, macOS and iOS start at 64. A browser claiming Windows whose SYN looks like Android or a Linux router was probably relayed. VPNs and corporate gateways cause the same mismatch, and tunnels often lower the maximum segment size, so give this a medium weight.

Do time zone and language fit the IP location?

Proxy services let customers choose an exit country or city. The bot's machine stays wherever it is unless the operator also fakes its time zone and language. Compare Intl.DateTimeFormat().resolvedOptions().timeZone, navigator.languages and the Accept-Language header with the IP's geolocation. In some browser configurations, WebRTC also reveals a public address that differs from the one on the HTTP connection.

Travellers, expats, people in multilingual countries and mobile users roaming abroad (whose data often exits through their home network) all produce honest mismatches. This signal is useful next to others and weak alone.

What does IP rotation look like in your data?

Rotation leaves a clearer trace than any single connection. Real people change IP now and then, for example when a phone leaves Wi-Fi. A bot on a rotating pool changes IP every few requests while keeping the same cookies and device fingerprint.

Devices seen from many IPs in the last hour (PostgreSQL, with ip stored as inet):

sql
SELECT device_id,
       COUNT(DISTINCT ip) AS ips,
       COUNT(DISTINCT asn) AS networks,
       COUNT(*) AS requests
FROM events
WHERE ts > now() - interval '1 hour'
GROUP BY device_id
HAVING COUNT(DISTINCT ip) >= 5
ORDER BY ips DESC;

Signups concentrated in one subnet (a /24 for IPv4, a block of 256 addresses, and a /64 for IPv6) over a day:

sql
SELECT CASE WHEN family(ip) = 4 THEN network(set_masklen(ip, 24))
            ELSE network(set_masklen(ip, 64)) END AS subnet,
       COUNT(*) AS signups,
       COUNT(DISTINCT device_id) AS devices
FROM signups
WHERE created_at > now() - interval '1 day'
GROUP BY 1
HAVING COUNT(*) >= 10
ORDER BY signups DESC;

The thresholds of 5 IPs and 10 signups are starting points. Many accounts from one subnet with similar device fingerprints point to a farm working through a proxy pool; many accounts with very different devices may be a university or an office. The same linking logic is the core of detecting multi-accounting.

What should you do when you suspect a residential proxy?

Respond in proportion to the evidence and the risk of the action. Because the IP may belong to a real household, avoid long IP blocks. If you block an IP at all, expire the block within hours.

  • Rate limit per device, account or payment card instead of per IP, since IP-based limits are what rotation defeats. Rate limiting for bots covers the trade-offs.
  • Challenge or step up verification at login, signup and checkout instead of blocking page views.
  • Hold suspicious signups for review or delay promo and referral rewards until the account shows normal activity.
  • Run new proxy rules in log-only mode first and measure how many real customers they hit, as described in false positives in bot detection.

Tools that help

StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking.

  • Spur focuses on identifying VPNs, residential proxies and other anonymity services, with an API and data feeds for IP context.
  • IPQualityScore offers a proxy and VPN detection API that returns a fraud score per IP, suited to signup and checkout checks.
  • MaxMind sells an Anonymous IP database with categories for VPNs, hosting providers, Tor exits, public proxies and residential proxies, which you can query locally without an API call per request.
  • CrowdSec is open source and free to start, and shares blocklists of IPs caught attacking other members; it helps against scanners and brute force more than against fast-rotating residential exits.
  • Kairal connects network signals with device and behaviour data, so a bot that rotates IPs still links back to the same device in its console.

Common questions

Can residential proxies be detected?

Often, but rarely with certainty from the IP alone. Detection works best on sessions, where rotation, timing gaps and location mismatches add up, and at sensitive actions such as signup or checkout, where you can ask for more proof instead of blocking.

Are VPNs easier to detect than residential proxies?

Usually yes. Commercial VPNs exit from data centre networks with a small set of known IP ranges, which feeds list well. Residential proxies exit from consumer connections shared with real households and change IP constantly.

Should I block all proxy traffic?

Usually not. VPN and privacy relay users, corporate staff behind gateways and travellers all arrive through some kind of proxy. Block only where the abuse risk is high and the action has a fallback, such as a challenge or manual review.