What is robots.txt?
robots.txt is a text file at the root of a site that tells crawlers which paths they may fetch. RFC 9309 defines its rules as an internet standard.
In short. robots.txt is a plain-text file at the root of a site that tells crawlers which paths they may fetch. The IETF published its rules as RFC 9309 in September 2022. AI companies document a token for each bot, so a site can block a training crawler and still allow AI search bots.
On this page 6 sections
The evidence
- Confirmed:
- Confirmed:
- Confirmed:
- Observed:
25.12% of cited domains with a valid robots.txt name at least one AI crawler in it.
Promptly Found crawl of cited domains, Nov 2026.
Confirmed by the platformObserved in data
robots.txt is a text file that a site publishes at the path /robots.txt. Crawlers read it before they fetch other pages, and it tells each crawler which paths it may request. For AI crawlers, it is the main control that the operators document.
#How does robots.txt work?
A robots.txt file is a list of groups, and each group gives rules to one or more crawlers. RFC 9309, the Robots Exclusion Protocol, defines the format. It extends a method first defined in 1994.1 Each group starts with one or more User-agent lines, followed by Allow and Disallow rules. A crawler obeys the group that matches its product token. If no group matches, it obeys the group for *. Within a group, the most specific matching path wins.1
User-agent: *
Allow: /
User-agent: GPTBot
Disallow: /In this file, GPTBot may fetch no path, and every other crawler may fetch every path.
Google's robots.txt documentation adds details for its crawlers. The rules apply only to the host, protocol and port where the file is hosted. Google enforces a size limit of 500 KiB and generally caches the file for up to 24 hours.2
#What can robots.txt not do?
robots.txt states a request and does not enforce it. RFC 9309 says its rules are not a form of access authorization. It also warns that listing a path in the file makes the path public, and that private content needs a security measure such as HTTP authentication.1 Cloudflare's Content Signals site says some crawler operators may disregard robots.txt. It adds that courts and regulators may conclude that robots.txt files do not impose enforceable legal obligations.4
#How does robots.txt control AI crawlers?
robots.txt lets a site make a separate choice for each AI bot. OpenAI's crawler overview says a site can allow OAI-SearchBot to appear in search results and disallow GPTBot to keep its content out of training. It says its search systems can take about 24 hours to adjust after a robots.txt update.3 Fetchers that act on a user's request are an exception. OpenAI says robots.txt rules may not apply to ChatGPT-User.3
Many sites already use robots.txt for AI bots. In our November 2026 crawl, 25.12% of the domains cited in AI answers that had a valid robots.txt named at least one AI crawler in it. Do websites cited by AI answers block AI crawlers? gives the figures for each bot. How to allow or block AI bots in robots.txt shows the rules to write, and the robots.txt generator builds a file.
Read next
Crawlers
How to block AI crawlers
Block AI bots with robots.txt: choose which jobs to block, name each bot's token, add CDN or server rules for bots that ignore it, then test.
Crawlers
What is the difference between training bots and search bots?
OpenAI, Anthropic and Perplexity run separate bots for training, search and user requests. Four operators announced a shared training signal on Oct 30, 2026.
Crawlers
How Google crawls and indexes pages
Crawling and indexing are separate steps, and Google guarantees neither. How each works, how to find where a page failed and how to audit crawl efficiency.
Research
Do websites cited by AI answers block AI crawlers?
Of 6,653 cited domains with a valid robots.txt, 8.5% fully block an AI crawler. Training crawlers were blocked by 3.8% to 7.1%, search crawlers by 0.8% to 1.4%.
Used in
- GPTBot vs OAI-SearchBot: OpenAI's training and search crawlersCrawlers
- Which AI crawlers should I allow or block in robots.txt?Crawlers
- How do I write an llms.txt file?GEO
- How Cloudflare's AI bot settings workCrawlers
- AI search for health practices: get your clinic named and citedGuides
- AI search for law firms: get your firm cited in AI answersGuides
- AI search for local businesses: get named in ChatGPT and GoogleGuides
- AI search for publishers: get your reporting cited in AI answersGuides
- AI search for SaaS: get your software recommended by AI answersGuides
- Does llms.txt help AI visibility?GEO
- Do AI models cite sites that block their crawlers? 37,865 answersResearch
- How many of 7,192 websites cited by AI answers publish llms.txtResearch
- What 9,870 answers show about ClaudePlatforms
- What 6,632 ChatGPT answers and API data show about OpenAIPlatforms
- What 19,740 Sonar answers and 250 app answers show about PerplexityPlatforms
- How to run an AI crawlability auditCrawlers
- How to block AI crawlersCrawlers
- How to check whether your site is in Common CrawlCrawlers
- How Google crawls and indexes pagesCrawlers
- How to do log file analysis for AI crawlersCrawlers
- How to allow or block AI bots in robots.txtCrawlers
- How to get cited in ChatGPT searchGEO
- How to get cited in Microsoft CopilotGEO
- How to get cited in GeminiGEO
- How to get cited in PerplexityGEO
- What does LLM training data look like?LLMs
- Which is the best AI search engine?Platforms
- ChatGPT vs Gemini compared for site ownersPlatforms
- Microsoft Copilot vs ChatGPT compared for site ownersPlatforms
- Perplexity vs ChatGPT search compared for site ownersPlatforms
- Do websites cited by AI answers block AI crawlers?Research
- What is the difference between training bots and search bots?Crawlers
- GEO myths: what the evidence saysGEO
Related terms
Questions
Is robots.txt legally binding?
RFC 9309 says its rules are not a form of access authorization. Cloudflare's Content Signals site says some crawler operators may disregard robots.txt, and that courts and regulators may conclude the files do not impose enforceable legal obligations.
Do all bots follow robots.txt?
No. RFC 9309 asks crawlers to honor the rules but does not enforce them. OpenAI says robots.txt rules may not apply to ChatGPT-User, because a user starts those requests.
Does one robots.txt file cover my subdomains?
No. Google says robots.txt rules apply only to the host, protocol and port where the file is hosted. Each subdomain needs its own file at its own /robots.txt path.
About this page
Researched and reviewed by Promptly Found. Reviewed Dec 1, 2026. Next review due Mar 2027.
Notes
- 1
- 2
- 3
- 4
Cite this page
Promptly Found. (2026, December 1). What is robots.txt? https://promptlyfound.com/glossary/robots-txt
Revisions 1
- First published.