Skip to content

AI traffic

robots.txt

robots.txt is a plain text file at the root of a website, at /robots.txt, that tells crawlers which paths they may and may not fetch. It is a request, not a lock: well-behaved crawlers follow it, and others can ignore it.

Also called robots exclusion protocol, robots.txt file, disallow rule Updated

User-agent: GPTBot
Disallow: /

User-agent: *
Disallow: /admin/
Allow: /admin/help

How is it calculated?

The format is standardised as the Robots Exclusion Protocol in RFC 9309. The file is made of groups. Each group starts with one or more User-agent lines naming a crawler token, or * for all, followed by Allow and Disallow rules for URL paths. A crawler uses the group that names it most specifically and ignores the rest. Within that group the longest matching rule wins, and Allow wins a tie.

It controls crawling, not indexing. Google’s own robots.txt introduction says it is not a way to keep a page out of Google: a blocked URL can still appear in results if other pages link to it. Use noindex or a password for that, and leave the page crawlable so the noindex can be seen.

Example

With the file above, GPTBot matches its own group and may fetch nothing. Googlebot has no group of its own, so it uses *: it may not fetch /admin/settings, but it may fetch /admin/help, because the Allow rule is longer and more specific than Disallow: /admin/. Every other path is open.

Common mistakes

  • Using it to hide a page from search. Disallowed pages can still be indexed from links. It also lists your private paths for anyone to read.
  • Blocking every AI bot with one group. Training crawlers, search crawlers and user-triggered fetchers are different decisions, and blocking the last two can remove you from assistants’ answers.
  • Blocking the CSS and JavaScript a page needs. A search engine that cannot load them may not render the page correctly.
  • Expecting it to stop scrapers. Compliance is voluntary. To enforce a block, filter by verified IP or user agent at your server or CDN.

How CrispStats shows it

CrispStats does not write or serve robots.txt for your site. The free robots.txt generator builds one: allow or block each AI crawler, add private paths and a sitemap, then copy the file. Once your site reports AI crawler hits from its edge, the AI page lists the paths each bot fetched, so you can see whether the bots you allowed are reading the pages you care about.

Visitors from AI assistants on the demo site, Quillbook, on generated traffic. Open it in the demo 

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.