# We added a "User-agent: Crawl4AI" group with "Disallow: /" to robots.txt, like several big publishers have, but we still get page fetches that look like Chrome. Does Crawl4AI read robots.txt at all, and why doesn't our rule seem to apply?

**Short answer:** Only when the person running it turns the check on, and even then a Crawl4AI group usually doesn't match. Crawl4AI is an open-source Python crawling library (Apache-2.0, release v0.9.6 on November 20, 2026), so each copy runs on its user's own machine or server. Its run setting check_robots_txt is off unless the user sets it to True; its parameter docs list it as False. When it is on, the library compares your rules with the user agent its browser sends, which ships as a Linux Chrome/158 string unless the user changes it, using Python's standard robots.txt parser, and that parser only looks at the part of the user agent before the first slash (here "Mozilla"). So a group named Crawl4AI never applies to that string; in practice only your * group does. Our test on November 21, 2026 against the robots.txt files of amazon.com, theatlantic.com, theverge.com, usatoday.com and vox.com, which all name Crawl4AI, found each would let the shipped Chrome string fetch an article path and would block a user agent that begins with "Crawl4AI/". The check also lets the fetch go ahead if robots.txt is missing, answers with anything but 200, or takes more than 2 seconds. Treat the group as a polite request, write the rules you care about under *, and use access control for anything that must not be fetched.

## Checklist
1. Know who you are dealing with: Crawl4AI is a library, not a single company's crawler. Each user runs their own copy, from their own addresses, with their own settings, so there is no fixed IP list or published user agent to match.
2. Assume robots.txt isn't checked. check_robots_txt is a per-run setting that is off unless the user sets it to True; the docs list it as False under compliance settings.
3. Write the rules that matter under "User-agent: *". When the check is on, Crawl4AI matches your file against its browser user agent, which ships as a Linux Chrome/158 string, and Python's parser reads only "Mozilla" from it, so in practice only your * group applies.
4. Don't rely on a "User-agent: Crawl4AI" group. It only matches if the user changes the browser user agent so that it begins with Crawl4AI; a string like "MyBot/1.0 (Crawl4AI)" still doesn't match, because the parser stops at the first slash.
5. Keep robots.txt fast and returning 200. The library allows the fetch if robots.txt takes longer than 2 seconds, returns any other status code or can't be fetched, and it caches a copy for 7 days per domain on the user's machine.
6. Look for the pairing in your logs: when the check is on, robots.txt is requested by Python's aiohttp client (a user agent like "Python/3.13 aiohttp/3.14.5"), and the page itself arrives with a Chrome string. A block from robots.txt never reaches you; the library returns its own 403 result to its user without fetching the page.
7. For pages that must not be fetched, use controls the client can't skip: sign-in, signed or expiring links, and rate limits keyed to behavior rather than user agent.
8. Keep dated copies of your robots.txt so you can show what you asked for and when.

## Does Crawl4AI check robots.txt?
- Crawl4AI's parameter reference (read November 21, 2026) lists check_robots_txt as a boolean, False, that "checks and respects robots.txt rules before crawling" when True, with caching in SQLite. In the project's main-branch source (read November 21, 2026; latest release v0.9.6, November 20, 2026), the crawler runs the check once per URL before any attempt, only when the run setting is True.
- The check itself is the RobotsParser class in crawl4ai/utils.py. It fetches robots.txt from the same domain with a 2-second timeout and allows the URL if the response isn't 200 or the request errors in any way; a code comment says it fails open, so robots is ignored rather than respected. A 200 response is cached for 7 days per domain in a SQLite file under the user's home folder. The fetch sets no user agent of its own, so it goes out with the aiohttp client's string, such as "Python/3.13 aiohttp/3.14.5".
- If your rules disallow the URL, the library returns a result with status 403, the message "Access denied by robots.txt" and a header "X-Robots-Status: Blocked by robots.txt" to its user. That 403 is produced locally; the page request is never sent, so nothing shows in your logs.

## Why doesn't a Crawl4AI group in robots.txt stop it?
- The library passes the browser configuration's user agent to the check. That user agent ships as "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36", and a user can replace it or switch on a random-user-agent mode. The parameter docs suggest setting user_agent to identify your crawler, but in the current source the check reads the browser configuration's value, not the run setting's.
- Matching uses Python's standard urllib.robotparser. It lowercases the user agent and keeps only what comes before the first slash, then treats a group as matching if the group's name appears inside that text; if nothing matches, the * group applies. For the shipped Chrome string the text is "mozilla", so groups named Crawl4AI, GPTBot and nearly every other bot are skipped and in practice only * counts.
- We ran that parser on November 21, 2026 against the robots.txt files of amazon.com, theatlantic.com, theverge.com, usatoday.com and vox.com, each of which names Crawl4AI in a group that disallows /. For an article path on each site, the shipped Chrome string was allowed, "Crawl4AI/1.0" was refused, and "MyBot/1.0 (Crawl4AI)" was allowed. The groups only work for users who set a user agent that starts with Crawl4AI.

## How can you spot and handle Crawl4AI traffic?
- You usually can't single it out. Page fetches look like Chrome, come from wherever the user runs the library, and only check robots.txt if the user asked. If you see a robots.txt request from a Python aiohttp user agent followed by Chrome page fetches from the same address, that fits a Crawl4AI run with the check on, but other tools built on aiohttp can produce the same pattern.
- Put what you want honored under *, keep robots.txt quick to serve, and keep the Crawl4AI group as well; it costs nothing and covers users who identify themselves. For pages that must not be fetched, rely on authentication, signed or expiring links, and rate limits based on behavior.
- For automated clients you do want to let in, prefer ones that sign their requests (Web Bot Auth), so you can verify them instead of guessing from user-agent strings; the Crawl4AI docs and source cited here don't describe request signing.

## Ask Rightshold (free, no key)
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code (one-click setup: https://www.rightshold.com/start?ref=seo), then ask: "Before we count on a Crawl4AI rule, what does our robots.txt tell AI crawlers today, and what does our * group say, since that's the group Crawl4AI's check actually matches?"

```json
{
  "tool": "read_ai_policy",
  "arguments": {
    "domain": "example.com"
  }
}
```
- Free, no key, cached about 6 hours. For 16 AI crawler, search and user-fetch tokens (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Bytespider and others) it reports whether the path is allowed and which group matched; matched_group "*" shows what your * group says, which is the group a Chrome-string Crawl4AI run applies. It also reports Content-Signal lines, ai.txt, W3C TDMRep and whether llms.txt exists.
- It doesn't check a Crawl4AI token, so read that group yourself, and it reports what your files say, not what Crawl4AI or anyone else fetched.

_Rightshold reads a site's public crawl and AI-use signals. It isn't affiliated with Crawl4AI, can't see anyone's Crawl4AI runs or your logs and can't make any client honor robots.txt. Crawl4AI's behavior is as its parameter docs and main-branch source stated, the parser results are from our own run of Python 3.13's urllib.robotparser, and the robots.txt files described are as fetched, all on November 21, 2026; users can change every setting and the project can change its code in any release. Not legal advice._

## Sources
- [Crawl4AI docs: Browser, Crawler & LLM Config parameters (check_robots_txt, user_agent)](https://docs.crawl4ai.com/api/parameters/)
- [unclecode/crawl4ai source: crawl4ai/utils.py (RobotsParser)](https://github.com/unclecode/crawl4ai/blob/main/crawl4ai/utils.py)
- [unclecode/crawl4ai source: crawl4ai/async_webcrawler.py (robots.txt check before crawling)](https://github.com/unclecode/crawl4ai/blob/main/crawl4ai/async_webcrawler.py)
- [unclecode/crawl4ai source: crawl4ai/async_configs.py (check_robots_txt, browser user agent)](https://github.com/unclecode/crawl4ai/blob/main/crawl4ai/async_configs.py)
- [unclecode/crawl4ai releases (v0.9.6, November 20, 2026)](https://github.com/unclecode/crawl4ai/releases)
- [Python docs: urllib.robotparser](https://docs.python.org/3/library/urllib.robotparser.html)

## Related
- [Does Firecrawl obey robots.txt, and why is FirecrawlAgent missing from your logs?](https://www.rightshold.com/answers/does-firecrawl-obey-robots-txt-and-why-is-firecrawlagent-missing-from-your-logs)
- [Detecting AI agents that pose as a regular Chrome browser](https://www.rightshold.com/answers/how-to-detect-ai-agents-that-pose-as-a-regular-chrome-browser)
- [How to catch crawlers that ignore robots.txt with a disallowed trap URL](https://www.rightshold.com/answers/how-to-catch-crawlers-that-ignore-robots-txt-with-a-disallowed-trap-url)
- [Why an AI training opt-out or robots.txt is not access control](https://www.rightshold.com/answers/why-an-ai-training-opt-out-or-robots-txt-is-not-access-control)

_Not legal advice. Updated 2026-11-21. JSON: https://www.rightshold.com/answers/does-crawl4ai-obey-robots-txt-and-why-doesnt-a-crawl4ai-disallow-rule-stop-it.json_