na.to.
📚 All keywords › 🤖 Using Generative AI › Opting Your Website Out of AI Training: robots.txt Settings and Limits
KO EN
🚧

Opting Your Website Out of AI Training: robots.txt Settings and Limits

Don't want your site used for AI training? Say so in robots.txt. The crawler names OpenAI and Google publish, the effect on search, and the limits.

📚 Using Generative AI · 42/54· ⏱ About 4min read ·Information updated 2026-11-03
📋 Key facts5
Tool
The robots.txt file at the root of your site
OpenAI training
GPTBot
Google Gemini training
Google-Extended (no effect on Google Search ranking)
Limit
Compliance is up to the crawler; it is not enforceable
Caution
Blocking Googlebot removes you from search too

What robots.txt is

The robots.txt file placed at the root of a website is a convention that tells crawlers, the programs that collect pages automatically, which parts they may and may not fetch. Search engines have followed it for a long time, and in 2022 it was formalised as the internet standard RFC 9309. AI companies also publish names for the crawlers that gather training data and say they follow this file's rules. So by blocking crawlers by name, you can state that you refuse collection for training.

OpenAI's three crawlers

OpenAI's official documentation distinguishes crawlers with different purposes. To opt out of training, block GPTBot. Decide separately whether to also block appearing in AI search.

  • GPTBot: collects content that may be used to train generative models
  • OAI-SearchBot: collects pages to show sites in ChatGPT's search features
  • ChatGPT-User: visits a page when a user asks; not automatic crawling, and OpenAI notes robots.txt rules may not apply

Google's training token

Google provides a separate token, Google-Extended, that lets site owners decide whether content Google crawls may be used for things such as training Gemini models. According to Google's documentation, it is not a separate crawler but a token used only in robots.txt, and blocking it does not affect inclusion or ranking in Google Search. By contrast, blocking Googlebot, the search crawler, removes you from search results, so do not confuse the two.

Example settings

To block only training collection while leaving search alone, write the following in the file. Each group consists of a line naming the target and a line giving the path to block; a single slash means the whole site. After editing, open your site's address followed by the file name to check that the content appears as written.

  • 'User-agent: GPTBot' followed by 'Disallow: /'
  • 'User-agent: Google-Extended' followed by 'Disallow: /'
  • For other companies' crawlers, check the names in their official documentation and add them the same way

Limits of this approach

robots.txt is a request, not a lock. The standard itself says these rules are not a form of access authorisation. It only works for crawlers that say they follow it and cannot stop collectors that hide their names. It is not retroactive for material already collected, and copies of your writing on other sites follow those sites' settings. For material that must be protected, consider blocking access itself, for example by putting it behind a login.

If you write on a blogging platform

If you write on a blogging platform rather than your own site, you usually cannot edit robots.txt. In that case, check whether the platform offers an AI training opt-out and what its terms say about how users' posts may be used. If there is no opt-out, adjusting who can see your posts may effectively be the only option.

Deciding whether to block

Blocking every AI crawler is not always to your advantage. If you want your site cited as a source in AI search or answers, you can leave search crawlers open and block only training crawlers. If you object to being used for training at all, as with paid content or creative work, block all the training tokens. Names and purposes differ between companies and can change, so it is worth rechecking the official documentation every few months.

Checklist before changing settings

Check the following before editing the file.

  • Have you decided whether to block only training or AI search as well?
  • Have you avoided accidentally blocking search crawlers such as Googlebot?
  • Have you confirmed crawler names in each company's official documentation?
  • Is the file at the root of your site?
  • Do you understand it has no effect on material already collected?

🔗 More in this category

🧰 Related tools

🌍 Search the web for this

Each button runs this keyword on that search engine