My project
Technical SEO

What is robots.txt?

Updated on November 6, 2026

robots.txt is the text file at the root of a site that tells crawlers which parts they may fetch, robot by robot. Honest crawlers obey it; it is not a security measure.

The file names a user agent and lists the paths it is allowed or disallowed to fetch. Since 2023 it is also where a site decides which AI crawlers it accepts: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended each read their own section. A site that wants to be cited by assistants allows their search crawlers here.

robots.txt blocks fetching, not indexing: a blocked page can still appear in results if other sites link to it, shown without a description. To keep a page out of the index, let it be crawled and add a noindex rule. Mistakes in this file are the fastest way to disappear from search, so every change deserves a test.

Frequently asked questions

Is robots.txt the same as noindex?

No. robots.txt stops the crawler from reading a page; noindex lets it read the page and asks it not to list it. A page blocked in robots.txt cannot see its noindex, so the two must not be combined.

Does blocking GPTBot keep a site out of ChatGPT answers?

No. GPTBot gathers training data; ChatGPT search cites pages fetched by OAI-SearchBot. Blocking one and allowing the other keeps the site citable and out of training.

Related terms