Scraping and AI crawlers

Scrapers, search crawlers and AI agents: what the law says, what robots.txt does, and how to control access.

GET /learn/scraping/ Accept text/html text/markdown

Basic

  1. What is web scraping? Crawling vs scrapingBasic

    What web scraping is, how scrapers extract data, how scraping differs from crawling, what scrapers target and how scraping shows up in your logs.

  2. Is web scraping legal?Basic

    A general guide to web scraping law: the CFAA and hiQ v. LinkedIn in the US, plus GDPR, database rights and text and data mining rules in the EU.

  3. Does robots.txt stop scraping?Basic

    Does robots.txt stop scraping? What the RFC 9309 standard does, who follows it, why it can help scrapers, and a correct example file to copy.

  4. What are AI crawlers?Basic

    What AI crawlers are: training crawlers, AI search indexers and user-triggered fetchers, with the main user agent tokens and how each treats robots.txt.

  5. Should you block AI crawlers?Basic

    Should you block AI crawlers? A decision guide for publishers, ecommerce, SaaS docs and communities that weighs training use, AI search visibility and load.

Intermediate

  1. How to prevent web scrapingIntermediate

    How to prevent web scraping with layers: rate limits, bot detection, API hardening, login for bulk data, honeypot links and price protection.

  2. Can web scraping be detected?Intermediate

    How websites detect web scraping: log patterns, a SQL query to start from, TLS and browser fingerprints, behaviour, proxy signals and false positives.

  3. How to block AI crawlers: robots.txt, Cloudflare and nginxIntermediate

    How to block AI crawlers with robots.txt, an nginx map rule, Cloudflare settings and custom rules, plus what to do about scrapers that hide who they are.

Advanced

  1. How to verify Googlebot and other good botsAdvanced

    How to verify Googlebot, Bingbot and AI crawlers: reverse and forward DNS, a tested bash script, published IP range files and signed requests.

  2. AI agents vs bots: how to treat agentic trafficAdvanced

    How to treat AI agent traffic: what agentic browsers and shopping agents are, how to identify and verify them, and how to set a policy for each endpoint.