robots.txt
robots.txt is a plain text file at the root of a website that tells automated crawlers which parts of the site they may visit, including crawlers that collect data for AI.
A site's robots.txt file lives at a fixed address, such as example.com/robots.txt. It contains groups of rules, each starting with the name of a crawler (or an asterisk for all of them) followed by paths it is allowed or disallowed to fetch. A line reading User-agent: GPTBot followed by Disallow: / asks OpenAI's training crawler to stay away from the whole site. Crawlers that follow the protocol check the file before fetching other pages.
The idea dates from February 1994, when Martijn Koster proposed it on the www-talk mailing list. The writer Charles Stross has said the prompt was a badly behaved crawler of his that overwhelmed Koster's server. It worked as an informal convention for almost three decades until the Internet Engineering Task Force published it as RFC 9309, the Robots Exclusion Protocol, in September 2022. The RFC sets details such as matching the most specific rule, parsing at least 500 kibibytes of a file and not relying on a cached copy for more than 24 hours.
The file has become the front line of the argument over AI training data. AI companies publish names for their crawlers so sites can block them: OpenAI separates GPTBot, which gathers training data, from OAI-SearchBot, which powers search in ChatGPT. Google offers a robots.txt token, Google-Extended, that controls whether content can be used for Gemini training and grounding without affecting Google Search. In 2023, Originality.AI found that 306 of the thousand most-visited websites blocked GPTBot.
Its limits are important. The RFC states plainly that robots.txt is not a form of access authorisation: it is a request, not a lock, and a crawler that ignores it faces no technical barrier. Rules apply only from the moment they are added, so they do nothing about data already collected. OpenAI also notes that visits made on behalf of a user, such as ChatGPT fetching a page someone asked about, may not follow robots.txt rules. Courts have given the file different weight in different cases. Publishers are trying to build on it: in September 2025 the RSL Collective launched Really Simple Licensing, a way to set terms for AI bots inside robots.txt.
Add a group for each crawler you want to block, naming its user agent and disallowing the whole site, for example User-agent: GPTBot then Disallow: /. AI companies publish their crawler names, and Google uses the Google-Extended token to control Gemini training without affecting Search. It is a technical standard, not a law, and the RFC says it is not access authorisation. Courts have considered it in some disputes, with different results depending on the case and country, so its legal weight depends on the circumstances. No. OpenAI uses a separate crawler, OAI-SearchBot, for search results in ChatGPT. Blocking GPTBot signals that content should not be used for training, while blocking OAI-SearchBot keeps a site out of ChatGPT search answers. No. Compliance is voluntary. Reputable search engines and many AI companies say they follow it, but malicious bots ignore it, and crawlers acting on a specific user's request may not apply it.Common questions
How do I block AI crawlers with robots.txt?
Is robots.txt legally binding?
Does blocking GPTBot remove my site from ChatGPT search?
Do all crawlers obey robots.txt?
Search for "RFC 9309", "block GPTBot robots.txt" or "Google-Extended". The most reliable sources are the RFC itself and the crawler documentation published by each AI company and search engine, which list current user agent names. Lists of AI crawler names compiled by third parties go out of date quickly, so check them against the companies' own pages.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.