Skip to content
Updated Dec 4, 2026

Term · AI search

robots.txt

A text file at the root of a website (yoursite.com/robots.txt) that tells each bot, by name, which pages it may read. It's a request, not a lock.

Also called
robots.txt file
Category
AI search

What it is

Martijn Koster created it in 1994 so search engines wouldn't overload servers, and in 2022 it became an official internet standard (RFC 9309). Each group starts with "User-agent:", the bot's name, followed by the paths it may read (Allow) or not (Disallow).

In practice

Today it's the first tool for deciding what GlossaryAIartificial intelligenceThe branch of computer science that builds programs able to do tasks we associate with human intelligence, like understanding language, recognizing images or making decisions.More about AI → does with a website: you can let in bots that search and cite, such as OAI-SearchBot, and shut out those that train, such as GPTBot. Since late 2026 there's also a common signal against training, "__usage_ai-training".

Watch out for…

It's a request: well-behaved bots respect it and others don't, and agents acting for a person may skip it. Blocking Googlebot stops it from reading your pages, though it doesn't guarantee they disappear from its results, and many files still block bot names that are no longer used.

Learn more at rfc-editor.org (opens in a new tab)

Appears in

Actions