Skip to content
Ask Sera Search
Ask SeraAnswers from our guides, research and news Search
Learn
Guides
Research
Sectors
Platforms
News
Tools
About

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:

    RFC 9309 says the rules must be in a file named /robots.txt, in lowercase, in the top-level path of the service, encoded as UTF-8 plain text.1IETF

    RFC 9309, section 2.3, Sep 2022.

  • Confirmed:

    RFC 9309 says crawlers should not use a cached copy of robots.txt for more than 24 hours, unless the file is unreachable.1IETF

    RFC 9309, section 2.4.

  • Confirmed:

    RFC 9309 says robots.txt rules are not a form of access authorization, and that listing paths in the file makes them public.1IETF

    RFC 9309, sections 1 and 3.

  • 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

Text
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

Used in

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. 1
    RFC 9309: Robots Exclusion ProtocolIETF · Checked Dec 1, 2026 · Primary source
  2. 2
    How Google interprets the robots.txt specificationGoogle for Developers · Checked Dec 1, 2026 · Primary source
  3. 3
    Overview of OpenAI CrawlersOpenAI · Checked Dec 1, 2026 · Primary source
  4. 4
    Content SignalsCloudflare · Checked Dec 1, 2026 · Primary source
Cite this page
Citation style

Promptly Found. (2026, December 1). What is robots.txt? https://promptlyfound.com/glossary/robots-txt

Revisions 1
First published.