In 2023, bots generated 49.6% of all internet traffic globally, compared with 50.4% from human users. That was the highest share the Imperva 2024 Bad Bot Report had recorded since it began monitoring automated activity in 2013. The year after, automated requests became the majority. If you run crawlers across thousands of hosts, that shift is why origins defend harder, why a script that worked on fifty URLs falls over at fifty thousand, and why web scraping at scale has to start from yield per validated record, per-host limits, and legal constraints. Throughput and proxy rotation are tools inside that design, not the design.
Table of Contents
- The Seven Layers Every Scale Scraper Needs
- Legal and Ethical Limits Across Jurisdictions
- How to Schedule Requests Per Host Without Overloading Sites
- Choosing Proxy Pools and Rotation Rules
- Retries, Error Classes and Anti-Bot Blocks
- Measuring Yield and Catching Silent Failures
- Set a Cost Per Valid Record Budget Before You Scale
The Seven Layers Every Scale Scraper Needs
Automated collection crossed another line in 2024. Imperva's 2025 Bad Bot Report found that bots represented 51% of global web traffic, while malicious bots alone represented 37%. Bad-bot traffic rose from 32% of all internet traffic in 2023 to 37% in 2024. The same analysis covered the blocking of 13 trillion bad-bot requests, and roughly 31% of API attacks involved data scraping. Pages and structured interfaces are both under pressure. A crawler that only counts requests per second will meet blocks it never saw at small volume. The figures come from one security network, not a census of every scraper, but they are a clear signal of the load you are joining.
Build the system as seven separable layers. The table is the contract. Each layer has one job, and each job exists to stop a specific failure.
| Layer | Job | Failure it prevents |
|---|---|---|
| Frontier and scheduler | Orders URLs by priority and removes duplicates | Re-crawling the same pages |
| Host controller | Tracks robots.txt, crawl delay and error state per host | Overloading a single small site |
| Fetch and proxy layer | Sends requests through managed IP pools with sessions | Blocks from one IP range |
| Render and parse | Parses static HTML first and uses a browser only when needed | Paying browser cost on every page |
| Validation and quarantine | Checks fields against schema and sets anomalies aside | Silent bad data in the warehouse |
| Storage and replay | Keeps raw responses with hashes and run IDs | Refetching everything after a parser fix |
| Cost ledger | Records cost per call and per validated record | Spend nobody can explain |
Keep the layers separable so one provider, or one hostile host, can be swapped without rewriting the others. The frontier should not know which proxy pool you bought. The validator should not know which worker fetched the bytes.
Name an owner before the first fetch
Before you write code, assign an owner and one metric to each layer. Frontier: duplicate rate. Host controller: share of 429s per host. Fetch: block rate by pool. Render: share of pages that needed a browser. Validation: quarantine rate. Storage: replay success without a refetch. Cost ledger: cost per validated record. If a layer has no owner, it will be the one that fails in month three.
Social and page data often share the same agent workflow. When that agent also needs profiles or audiences, connect social data to AI workflows through a documented API instead of bolting an unmetered crawler onto the same workers.
Legal and Ethical Limits Across Jurisdictions
A common shortcut treats robots.txt as either a full permission slip or an absolute legal ban. It is neither. Recent European guidance treats scraping of personal data as processing under the GDPR, and it says legitimate interest requires measures that protect individuals' rights. Publisher signals, including robots.txt, CAPTCHAs, login walls, and explicit anti-training notices, can affect whether people reasonably expect collection. The EDPB guidelines on web scraping make that expectation part of the balancing test, not a courtesy you add later.

Model compliance as data lineage and routing, not a checklist you tick once before the first crawl. Mixed datasets of public pages, profiles, reviews, and user-generated content are where teams get this wrong, because a non-personal price field and a personal reviewer name often sit on the same HTML page.
Controls the pipeline can enforce
- Classify every field as personal or non-personal before it is stored, and drop fields you cannot justify for the stated purpose.
- Store the source URL and collection date on every record so a later deletion request can find the rows.
- Keep a per-domain instruction file that records robots.txt, login walls, and any anti-training notice you observed.
- Set retention and deletion by region, including suppression rules, and do not keep a global copy "just in case."
- Write a run log for each job: purpose, legal basis, sources touched, and what was discarded.
Practical rule: A source with conflicting instructions goes on a block list, not into a retry queue.
Agent workflows make the same rules harder. Scraped rows may pass across providers or into an external language-model API, which is a new purpose and a leakage path. Review that handoff on its own. Don't assume the collection basis covers downstream model use.
Provider terms are part of the control plane too. Our terms prohibit illegal scraping, bypassing rate limits, reselling access without an agreement, and interfering with the gateway, providers, or other customers. Read those limits before you wire any provider into a scale pipeline.
How to Schedule Requests Per Host Without Overloading Sites
Aggregate throughput misleads. A fleet can look safe at 200 requests per second while one small origin takes nearly all of them. Host concentration overloads that origin even when the global average looks calm. Treat crawling as a feedback-controlled pipeline, not a fixed-rate download job.

The Common Crawl FAQ describes the pattern I would copy. The crawler checks robots.txt first, obeys Crawl-delay, waits several seconds between requests to the same site by default, and slows down after 429 or 5xx responses. Its statistics separate successful fetches from redirects, not-modified responses, denied requests, failures, and skipped URLs. That split is a better production schema than a single success rate.
Six steps that keep one host from sinking the fleet
- Canonicalize URLs and drop duplicates before they enter the queue. The same product page with a tracking parameter should not be fetched twice in one run, or you will burn the host's budget on copies.
- Partition the frontier by registrable domain or host. Each origin gets its own queue so a burst of links from a sitemap can't starve, or flood, its neighbors.
- Store per-host state. Keep robots.txt policy, crawl delay, recent status codes, latency, and retry history. The scheduler reads that state. It doesn't guess.
- Evaluate robots.txt and the host delay before every fetch. Skip denied URLs with no retry. A denial is a routing decision, not a transient error.
- Send conditional requests with ETag or Last-Modified where the site supports them. Unchanged pages come back as 304s, which saves bytes and keeps you inside the host's tolerance.
- Update the host controller after every response. Cut concurrency and apply exponential backoff on HTTP 429 or 5xx. Don't retry stable 4xx failures.
Start with several seconds between requests to the same host, then follow any delay that host publishes. If you need a lab check on whether a limit is real, testing performance limits with GoReplay is a cleaner way to see saturation than raising production concurrency and hoping.
If a host's p95 latency climbs as you add workers, that host is the limit, not your fleet.
Size the global worker pool from the sum of the per-host limits, not from the fleet's peak capacity. Adding workers must not add pressure to a host that is already at its cap. Track success, freshness, denial, retry amplification, bytes per useful record, and p95 latency by host and provider, and tune the scheduler from those series.
Choosing Proxy Pools and Rotation Rules
A proxy pool changes the source IP; it does not change the host's limits. Choose a pool based on the page's access requirements, then measure its yield per validated record. If a host denies access or sets a rate limit, switching IPs can turn one failed request into repeated pressure.

| Proxy type | Best for | Main trade-off |
|---|---|---|
| Datacenter | High-volume pages on permissive or lightly protected hosts | Blocked fastest on protected sites |
| Residential | Protected consumer sites and geo-specific pages | Higher cost per request and slower responses |
| Mobile | Hosts that block datacenter and residential ranges | Highest cost and limited capacity |
| ISP static | Sessions that need one stable IP for hours | Smaller pool and less rotation |
Sticky sessions versus per-request rotation
Use a sticky session when a flow depends on cookies or login state across several requests. A checkout-style path or paginated account view can fail if the IP changes mid-flow. For independent listing pages, per-request rotation can spread requests across addresses without breaking session state.
Rotate on connection failures and 403 responses. A 429 is a host-level rate limit: reduce that host's concurrency and back off rather than changing the IP. Don't rotate on robots.txt denials or stable 404 responses. Neither indicates a pool problem.
Pool cost and record quality need to be evaluated together. Datacenter proxies are often less expensive, but can be blocked faster on protected sites; residential proxies cost more and may be useful for the smaller set of pages that challenge requests. Compare valid-record rates on a representative sample before assigning a pool broadly. For price monitoring, for example, datacenter addresses may suit catalog pages while residential addresses are reserved for pages that challenge requests.
For large file pulls, proxy rotation for high-volume downloads explains how rotation and bandwidth interact. Account for downloaded bytes separately from short HTML fetches when comparing pool costs.
The video below shows how a rotating pool behaves when sessions and failures mix.
Document which host uses each pool and who approves changes. That makes it easier to spot when a higher-cost route becomes the default rather than staying limited to the pages that need it.
Retries, Error Classes and Anti-Bot Blocks
The most expensive mistake in a large crawl is retrying everything. Unbounded retries inflate load and cost while they cut useful yield. Each error class needs its own action, or the host controller can't tell a blip from a block.
| Response or error | Action | Retry rule |
|---|---|---|
| 200 with challenge page or login wall | Mark as blocked and slow the host | No immediate retry |
| 200 with empty body or soft 404 | Quarantine and check the parser | No retry |
| 429 Too Many Requests | Cut host concurrency and honor Retry-After | Retry with backoff |
| 500, 502, 503, 504 | Back off the host | Retry with backoff, max 3 |
| Timeout or connection reset | Check the proxy session | Retry on a new connection, max 3 |
A budget, not a loop
Cap each URL at three attempts. Use exponential delays with jitter so a thousand workers don't wake up on the same second and hit the origin again as a herd. Set a per-host budget that pauses the host when too many recent requests fail. A paused host is cheaper than a polite-looking retry storm.
A challenge page or a login wall is not a transient error, even when the status line says 200. Send it to the host controller as a block signal that reduces that host's share of traffic. Don't answer it with a rotation loop through the proxy pool. Rotation after a challenge just spends the next pool on the same refusal.
What the log has to show
Every retry records the error class, the attempt number, and the delay. Retry amplification then shows up as its own series instead of hiding inside a healthy-looking total. When a host keeps returning challenge pages after its concurrency has been cut, the controller should return unknown for those URLs rather than a guessed or stale record, and it should flag the host for human review. A plausible stale row is worse than an explicit gap, especially in lead discovery and SERP monitoring, where someone will act on the row.
Measuring Yield and Catching Silent Failures
A run can look excellent and still deliver nothing. Say transport success sits near 98% while redirects, stale cached pages, HTML error documents, and anti-bot interstitials all return 2xx responses. You counted fetches. You didn't count records anyone can use. Counting transport success as extraction success is the failure I see teams ship into the warehouse.
Separate acquisition, rendering, parsing, validation, and replay. A Common Crawl crawler-metrics view shows why the split matters: the funnel records URL databases, scheduled fetch lists, and outcomes that include success, redirect, denied, failed, and skipped fetches. One blended rate hides the step that broke.
Report these seven metrics on every run, and break them down by host and by provider. A bad site disappears inside a fleet average.
| Metric | What it measures | Warning sign |
|---|---|---|
| Transport-success rate | Share of fetches that returned a response | Rising while valid records fall |
| Valid-record rate | Share of records that pass schema checks | Drop after a site template change |
| Field-level completeness | Share of required fields filled per record | One field empty on most pages |
| Duplicate rate | Share of records matching an existing canonical URL and content hash | Duplicates rising after a refresh schedule change |
| Challenge rate | Share of responses that are bot checks or login walls | Climbing on one host over several days |
| Median and p95 latency | Typical and slow response times per host | p95 climbing while the median stays flat |
| Cost per validated record | Total spend divided by records that pass validation | Cost rising while valid-record rate stays flat |
Evidence you can replay
Never report transport success on its own. Persist status, headers, URL, timestamp, content hash, and provider or worker version. Detect content type, compression, encoding, redirects, login walls, consent pages, soft-404s, and bot challenges before you parse. Parse static HTML first, and open a browser only when a missing-field or DOM-readiness test shows the content depends on JavaScript. Browser time multiplies CPU, memory, and timeouts.
Validate fields against schema constraints and cross-page invariants, quarantine anomalies, and keep the raw bytes. Deduplicate on canonical URL plus a normalized-content hash, and refresh on observed change frequency rather than one global interval.
A date-parser fix can raise field completeness across a stored batch without a single new fetch.
Keep failed and quarantined inputs, and give every run a deterministic ID, so parser changes replay against stored pages. Then hold a weekly yield review that compares valid-record rate and challenge rate per host with the prior period. If challenge rate climbs on one host for several days, that host is the story, not the fleet chart.
Set a Cost Per Valid Record Budget Before You Scale
The cheapest successful HTTP response isn't the cheapest result. Downstream validation, duplicate handling, and repair of silent corruption often cost more than the request. Teams that optimize cost per call, then discover the warehouse is full of challenge pages, have already spent the money twice.
A 2026 survey found infrastructure failures in 20.7% of web-agent attempts, with CAPTCHAs, bot detection, and website blocking accounting for obstacles comparable to reasoning failures, according to a paper in the IEEE digital library. For agent jobs, the useful question isn't how to push past a block. It's whether the run is trustworthy enough to automate. Record source freshness, page state, extraction confidence, schema drift, challenge rates, retries, and provider-level failure patterns. Then define when the agent retries, switches providers, asks for a person, or returns unknown.
The budget has to include request fees, proxy spend, browser time, retry volume, storage, and the engineering hours spent fixing bad records. Scraping at scale on looot starts from $0.0035 per call, which is a floor for the request, not the full cost of a validated row.

Five decisions before you add workers
- Set a target cost per validated record for the use case. Lead enrichment and price monitoring don't share a number. Write the one you will stop on.
- Run a pilot on a representative sample for each host and record the yield metrics, including challenge rate and field completeness, not just HTTP status.
- Compare providers and proxy types on cost per validated record, not cost per call. A pricier pool that returns clean rows can beat a cheap pool full of interstitials.
- Pause a host when its challenge rate or its cost per valid record crosses the threshold. Abstaining is a successful control, not a failed crawl.
- Raise concurrency only after the pilot meets the target. Where a provider quotes a price before each run, price the pilot first so the budget is known before the first URL.
Run that pilot this week. Don't scale a host until its valid-record rate, challenge rate, and cost per validated record still hold in the weekly review.
looot is a single key and a verifiable ledger for web scraping, search, and enrichment operations, with the price quoted before each run so a scale job doesn't turn into a surprise bill. If you're wiring host limits, yield checks, and cost per validated record into an agent workflow, start with the catalog at looot and price a small pilot before you raise concurrency.



