Loom Responsible Crawling

Part of Loom. These are proposed platform defaults and implementation requirements for avoiding excess load from a public crawl service.

Initial policy

ControlProposed default
ScopeExact seed hostname, HTTP/HTTPS only, standard ports
Crawl size500 unique URLs, maximum link depth 5, 30-minute wall-clock budget
Host concurrency1 in-flight request across all jobs for that target
Request paceAt least 2 seconds between request starts per host, without bursts
Worker pool8 fetch workers globally on the initial deployment, subject to global budgets
Request timeout15 seconds overall, with separate connection/header limits
RedirectsMaximum 5 per chain; revalidate every destination
Response sizeMaximum 2 MiB decompressed HTML per page
RetriesUp to 2 retries for eligible transient failures, with jitter and exponential backoff
Attempt and byte budgets2,000 total HTTP attempts and 100 MiB response data per job

These values are starting hypotheses for testing, not universal guarantees of harmless load. Tune downward for small or struggling targets. Enforce hard platform ceilings server-side.

Shared load control

Use a distributed limiter across jobs and worker replicas. Charge robots requests, retries, redirect hops, and other crawler fetches to target budgets. Use hostname-level scheduling plus optional related-host and destination-IP guardrails; a shared IP guard must account for unrelated sites on shared hosting.

Atomically allocate both a concurrency lease and a request-start slot. Leases expire after bounded requests and are refreshed or released safely. Fail closed if scheduling state cannot be consulted. A restart must not reset every domain to an immediate burst.

For 429 and 503 responses, respect valid Retry-After guidance and apply a shared cooldown. Slow down on repeated timeouts or server errors; stop a persistently failing target. Do not retry ordinary 404 responses. Show cooldown and throttling reasons in job status.

Robots and scope

Honor robots.txt using the matching crawler user-agent rules, caching and failure handling from RFC 9309. A robots network/server failure must not silently become permission to crawl. Use a tested parser and explicit tests for redirects, availability errors, matching, and cache expiry.

Crawl-delay is not standardized by RFC 9309; if supported, treat it as an extra restriction. Robots rules do not authenticate a crawler or replace access control. Identify Loom with a consistent user agent and operator contact page.

Limit traversal to the configured hostname and allowed paths. External URLs may appear as labeled stubs but are not fetched. A redirect to another hostname stops at a recorded boundary in the MVP; offer an explicit new seed rather than silently expanding scope. Do not fetch linked images, scripts, forms, or downloads in the static crawler.

URL identity and crawl traps

Resolve relative URLs against the final page URL and any valid HTML base URL, then apply scope and destination checks. Remove fragments, normalize scheme/host casing and default ports, and preserve path case and query semantics. Do not merge trailing-slash variants or sort/drop query parameters without an explicit, tested policy.

Allow a small explicit list of tracking parameters to be ignored. Bound URL length, query variation per path, total discovered edges, redirect chains, and repeated calendar/filter patterns. Canonical declarations are recorded hints, not authority to merge unrelated URLs or expand scope.

Public-service fetch protections

User-supplied URLs make destination validation part of the crawler design:

  • Reject credentials in URLs, unsupported schemes, loopback, private, link-local, reserved, and cloud metadata destinations for IPv4 and IPv6.
  • Validate DNS answers and connect only to a validated public address; preserve the intended Host header and TLS verification. Repeat checks on redirects and new connections to resist DNS rebinding.
  • Add outbound network rules blocking internal services. Do not inherit a proxy configuration that bypasses destination checks.
  • Limit compressed and decompressed bytes, parse time, link count, headers, redirects, and DNS/connect duration.
  • Never submit forms or attempt login. Do not bypass authentication, bot challenges, or access denials.
  • Render extracted titles and URLs as untrusted text in the UI; never embed fetched HTML as executable content.

If browser rendering is added later, every browser subrequest needs equivalent scope, destination, and rate controls. Limiting the top-level navigation alone is insufficient.