# Scraping and AI crawlers

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

- [What is web scraping? Crawling vs scraping](https://stopbots.io/learn/scraping/what-is-web-scraping.md) (Basic): What web scraping is, how scrapers extract data, how scraping differs from crawling, what scrapers target and how scraping shows up in your logs.
- [Is web scraping legal?](https://stopbots.io/learn/scraping/is-web-scraping-legal.md) (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.
- [Does robots.txt stop scraping?](https://stopbots.io/learn/scraping/does-robots-txt-stop-scraping.md) (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.
- [What are AI crawlers?](https://stopbots.io/learn/scraping/what-are-ai-crawlers.md) (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.
- [Should you block AI crawlers?](https://stopbots.io/learn/scraping/should-you-block-ai-crawlers.md) (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.
- [How to prevent web scraping](https://stopbots.io/learn/scraping/how-to-prevent-web-scraping.md) (Intermediate): How to prevent web scraping with layers: rate limits, bot detection, API hardening, login for bulk data, honeypot links and price protection.
- [Can web scraping be detected?](https://stopbots.io/learn/scraping/can-web-scraping-be-detected.md) (Intermediate): How websites detect web scraping: log patterns, a SQL query to start from, TLS and browser fingerprints, behaviour, proxy signals and false positives.
- [How to block AI crawlers: robots.txt, Cloudflare and nginx](https://stopbots.io/learn/scraping/how-to-block-ai-crawlers.md) (Intermediate): 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.
- [How to verify Googlebot and other good bots](https://stopbots.io/learn/scraping/how-to-verify-good-bots.md) (Advanced): How to verify Googlebot, Bingbot and AI crawlers: reverse and forward DNS, a tested bash script, published IP range files and signed requests.
- [AI agents vs bots: how to treat agentic traffic](https://stopbots.io/learn/scraping/ai-agents-vs-bots.md) (Advanced): 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.

All topics: https://stopbots.io/index.md
