Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end.
The worst blocks are the ones you don't notice. A site that returns 403 is honest. A site that returns 200 with a CAPTCHA, an empty result list or deliberately wrong data quietly ruins your dataset. Detecting these soft blocks early, and tying them to the exit address and the rate that caused them, keeps your data correct and your IP range healthy. This guide covers practical detection for crawlers running on your own addresses, such as a range from IPYE. The examples use the documentation prefix 198.51.100.0/24.
Hard signals
- 403 Forbidden: blocked by policy, often IP-based.
- 429 Too Many Requests: rate limit. Honour
Retry-After. - 503 with a challenge page: typical of CDN bot protection.
- Connection resets or timeouts on one site but not others: sometimes a firewall-level block.
Log each one with the exit address, target host and time.
Soft signals
CAPTCHA or challenge pages with status 200. Look for markers in the body:
MARKERS = (b'captcha', b'challenge-form', b'are you a robot', b'unusual traffic') def looks_blocked(body: bytes) -> bool: head = body[:20000].lower() return any(m in head for m in MARKERS) Unexpected page size. Track the typical response size per page type. A product page that's normally 150 KB arriving at 8 KB is suspicious:
def size_anomaly(kind, size, stats): mean, sd = stats[kind] return size < mean - 3 * sd Missing expected elements. Validate the parse, not just the fetch. If a product page has no title or no product data, treat it as a failed fetch:
item = parse(resp) if not item.get('title') or not item.get('sku'): raise SoftBlock(resp.url) Redirects to a login or "verify" page for content that's normally public.
Plausible but wrong data. Some sites serve decoy values to suspected bots. Cross-check a sample against a second source, or against the same page fetched from a different exit at low rate. Persistent mismatches from one exit suggest that exit is flagged.
Respond in proportion
- One soft block: retry once, later, from the same exit, at a lower rate.
- Repeated soft blocks on one host from one exit: cool that exit down for that host.
- Soft blocks across many exits on one host: you're too fast or too noticeable for that site. Cut its concurrency, and re-check your headers and behaviour.
- Blocks across many hosts from one exit: that address may be on a blocklist. Check DNSBLs and its recent traffic.
Keep a canary
Run a tiny, very slow "canary" fetch for each important site, one page every few minutes from a dedicated exit, and validate the content. If the canary starts failing, the site has changed its layout or its defences, and you'll know before the main crawl gathers bad data.
Store evidence
Save a sample of blocked responses (headers and the first few KB) with the exit and time. When you contact a site to ask for access, or tune your crawler, concrete examples help.
Don't escalate into evasion
The goal of detection is to slow down, fix behaviour and talk to the site, not to find clever ways around a site that has clearly said no. Persistent evasion gets ranges blocklisted across many sites, and hurts every other job you run.
Getting a range with clean history
Detection is most useful when the range's history is your own. A dedicated /24 from IPYE comes with reverse DNS for honest crawler names, a LOA and a ROA.
Next step
Add content validation to your parser today. When you need a dedicated range, set one up in the IPYE portal.
About IPYE
IPYE leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS, and ASN and region changes apply automatically. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. More at ipye.com. Questions: ipye@turnel.com.
Disclosure: I run IPYE
