/web-scraping:scraping-ethics-ai-corpora-and-site-defensefrom web-scraping
Guides ethical web scraping for AI/ RAG corpus building and site defense. Covers rate limits, robots.txt tokens (Google-Extended), provenance, opt-out signals, and structured data for crawler legibility.
Ships in web-scraping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 4 of 5 of the Web Scraping reference (plugin
web-scraping), covering §11–§13. Sibling skills:scraping-legal-landscape-and-permissions(§0–§3),scraping-tooling-extraction-and-blocking(§4–§7),scraping-scale-reliability-and-data-quality(§8–§10),scraping-reference(§14–§19). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §16 →
scraping-referencefor the currency snapshot and what goes stale first.
How to read this. Reference, not tutorial. Three markers:
- [DURABLE] — how HTTP and the web work, engineering practice, or ethics. Doesn't expire.
- [VERSIONED] — case law, regulation, tooling, platform behaviour. This domain's legal layer is moving faster than its technical layer right now. Verify.
- [CONTESTED] — genuine disagreement.
⚠️ GOTCHA boxes mark the mistakes that get you blocked, sued, or quietly producing wrong data for months.
This is not legal advice. §1 →
scraping-legal-landscape-and-permissionsis a map of the frameworks that apply and the questions to put to counsel, not an answer for your jurisdiction or your use case. The legal position depends heavily on what data, from where, about whom, and for what purpose — and those four variables move the answer more than any technical choice you make.The three framings that organize everything below:
- The legal question is not "is scraping legal." It is four separate questions — how did you access it (computer-access law), what did you agree to (contract), what is the data (copyright, personal data), and what will you do with it (privacy, AI training, resale). They have different answers and you need all four (§1 →
scraping-legal-landscape-and-permissions).- You are a guest on someone else's infrastructure, and they're paying for it. Nearly every operational rule in this document — rate limiting, caching, conditional requests, off-peak scheduling — follows from taking that seriously, and doing so also happens to be what keeps you unblocked (§11).
- Scrapers rot. A scraper is a hard dependency on someone else's HTML, which they will change without telling you. Silent breakage that produces plausible-looking wrong data is the characteristic failure of this field (§9 →
scraping-scale-reliability-and-data-quality), and it's worse than a crash because nobody notices.
[DURABLE] Almost every rule here also happens to keep you unblocked, which is a useful alignment.
scraping-legal-landscape-and-permissions).Retry-After and 429s. They are literally telling you the answer.scraping-tooling-extraction-and-blocking).[DURABLE] The test worth applying: would you be comfortable if the site owner read your crawl logs, and could you explain your rate, your purpose, and your data handling without wincing? If not, that's information.
[VERSIONED — the highest-risk use case, and where §1.6 → scraping-legal-landscape-and-permissions concentrates.]
Technical differences from classic scraping: you want clean readable text rather than fields (boilerplate stripping, main-content extraction, markdown conversion), chunking that respects document structure, metadata and provenance per chunk (so a retrieval system can cite), and freshness management.
⚠️ The legal picture is materially different from ordinary scraping, and conflating them is how teams get into trouble:
scraping-legal-landscape-and-permissions).scraping-legal-landscape-and-permissions).scraping-legal-landscape-and-permissions).[DURABLE] The practical governance minimum: maintain a source inventory with legal basis per source, respect opt-out signals and log that you did, exclude sensitive categories at collection, keep provenance through to the training set, and get review before training or reselling. This is dull and it is the actual work.
[DURABLE] Worth understanding from both sides, and increasingly a live product decision.
Publish your preferences clearly: robots.txt with the AI-crawler tokens you care about
(note that Google-Extended is a control token Googlebot reads, not a separate crawler —
disallowing it stops Gemini training use without touching search indexing), a sitemap,
and consider Content Signals / TDM reservations if AI use matters to you (§3.2 → scraping-legal-landscape-and-permissions).
⚠️ Understand the mixed-use trap before you toggle anything — blocking Training can
block multi-purpose crawlers including Googlebot, Applebot and Bingbot (§3.2 → scraping-legal-landscape-and-permissions). Check what
your configuration actually does rather than what you assumed it does.
Decide the strategic question, because it's genuinely contested: block AI crawlers to protect content, allow them for AI-answer visibility, or charge via a pay-per-crawl scheme. These are real trade-offs with revenue implications either way, and the honest position is that nobody knows yet how AI-referral traffic will develop.
And the counterintuitive one: if you want to be cited by AI systems and found by agents, clean machine-readable structured data is what makes you legible. Schema.org markup, a stable catalogue API, and accurate feeds serve search, marketplaces, agents, and your own consumers simultaneously — the same work pays off across all of them.
Technically: rate-limit rather than hard-block where you can, offer an API so people have a sanctioned path, serve conditional requests properly, and remember that an aggressive block is also blocking legitimate researchers, accessibility tools, and archives.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
web-scraping, ai-corpora, rag, robots-txt, crawler-ethics, site-defense
5 skills in this plugin
/scraping-legal-landscape-and-permissionsUse when deciding whether and how you are permitted to scrape: the four separate legal questions, computer-access law and the hiQ and Bright Data line under the CFAA, contract and terms-of-service exposure where scrapers actually lose, the DMCA §1201 shift, copyright, database rights and personal data, the AI-training layer and GDPR, the risk gradient, whether to scrape at all and what to do instead, and robots.txt and the emerging crawl-permission and payment layer. Includes the router for the whole web-scraping reference./scraping-referenceUse when checking a scraping anti-pattern, weighing a contested question (is scraping public data ethical, does robots.txt bind you, should sites block AI crawlers, is pay-per-crawl the right model, LLM extraction versus deterministic selectors, managed service versus building it yourself), confirming whether a legal or tooling claim is still current (snapshot verified August 2026), finding the primary documentation and books, or needing the before-you-write-code checklist, the operating rules, and a triage list. Companion to the other web-scraping skills./scraping-scale-reliability-and-data-qualityUse when a scraper has to run reliably and produce trustworthy data: scale and reliability engineering (concurrency, rate limiting, retries and backoff, proxies, scheduling), data quality and validation against the silent breakage that produces plausible-looking wrong data for months, and storage, pipelines and operations including deduplication, change detection and monitoring./scraping-tooling-extraction-and-blockingUse when building the scraper: how the modern web actually serves data (server-rendered, client-rendered, and the internal JSON API behind the page — the single most valuable technique here), the structured data sites give you for free, pagination and state, the tool ladder from requests and curl_cffi through Scrapy and Playwright to managed services, parsing and extraction including LLM versus deterministic selectors, and why you are getting blocked — TLS and HTTP fingerprinting, headless detection, and the honest guidance.npx claudepluginhub the-vibey-project/vibey --plugin web-scrapingOther plugins' skills for the same job