Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · AI crawlers

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?

Last updated

TL;DR: 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.

What should I check, step by step?

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

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.

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.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, 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?”

One-click setup

{
  "tool": "read_ai_policy",
  "arguments": {
    "domain": "example.com"
  }
}

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.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'