Glossary

robots.txt

Last updated

Overview

Also called Robots Exclusion Protocol, robots file

Definition: robots.txt is a plain text file at the root of a site that tells crawlers which URLs they may access, following the Robots Exclusion Protocol standardised as RFC 9309.

The protocol was first described by Martijn Koster in 1994 and published by the IETF as RFC 9309 in September 2022. The RFC states that its rules are not a form of access authorisation: well-behaved crawlers follow them, but they do not lock anything. Google says robots.txt is used mainly to avoid overloading a site with requests, and that it is not a way to keep a page out of Google, because a disallowed URL can still be indexed if other pages link to it.

Example: a group with User-agent: GPTBot and Disallow: / asks OpenAI’s training crawler to stay away from the whole site, while other crawlers are unaffected.

Why it matters for site owners

robots.txt is the documented way to set separate rules for search crawlers and AI crawlers, including GPTBot, ClaudeBot and Google-Extended. To keep a page out of search results, use noindex or password protection instead, and remember the crawler must be allowed to fetch a page to see a noindex rule on it.

  • noindex

    noindex is a rule, set in a robots meta tag or an X-Robots-Tag HTTP header, that tells search engines which support it not to show a page or file in their search results.

  • Googlebot

    Googlebot is the generic name for Google Search's two web crawlers, Googlebot Smartphone and Googlebot Desktop, which fetch pages so they can be indexed.

  • GPTBot

    GPTBot is OpenAI's web crawler for collecting content that may be used to train its generative AI foundation models.

  • Crawl budget

    Crawl budget is the time and resources Google allocates to crawling a single site, set by the crawl capacity limit its crawlers apply and by crawl demand for the site's URLs.

Latest news

Sources

  1. PrimaryGoogle Search Central

    Robots.txt introduction and guide

    Checked

  2. PrimaryIETF

    RFC 9309: Robots Exclusion Protocol

    Checked

Get the briefing

Google and AI search changes, explained the day they land.

Unsubscribe from any email. Privacy policy

Add AI SEO Wire as a preferred source on Google