Skip to content

Chapter 10 · AI Search, GEO and AEO

AI Crawlers, Robots.txt Rules and llms.txt

Set access preferences by crawler purpose, preserve the search access you want, and verify actual requests rather than treating llms.txt as a permission or visibility shortcut.

Updated November 24, 2026 · By · Reviewed by Robin Rad

· 8 min read

Quick answer: AI crawlers retrieve web content for purposes such as search discovery and model training. Robots.txt communicates crawler-specific access preferences, while llms.txt is a proposed Markdown guide to useful site content, not an access-control file. Publishers should distinguish search bots, training bots, and user-triggered fetchers because their controls and behavior differ.

Key facts

TL;DR: Set access preferences by crawler purpose, preserve the search access you want, and verify actual requests rather than treating llms.txt as a permission or visibility shortcut.

AI crawler
An automated fetcher that retrieves web content for an AI-related service, with purposes and policies defined by its operator.
Robots.txt
A public file that communicates crawling rules to cooperating crawlers rather than enforcing authentication or confidentiality.
Robots product token
An identifier used to target robots.txt rules, which does not always correspond to a separate HTTP user-agent string.
llms.txt
A proposed Markdown file that summarizes a site and links to useful content for LLM-oriented consumption, without enforcing access permissions.
A website server connects crawlers, a user-operated browser, a rule document, and an open content directory.

What do AI crawlers, robots.txt and llms.txt each do?

AI crawlers, robots.txt rules and llms.txt serve different jobs. Crawlers fetch pages. Robots.txt tells cooperating bots which paths they may crawl, while llms.txt is a proposed Markdown guide to useful site content. Neither file keeps private content secure.

The Robots Exclusion Protocol defines how bots read rules in robots.txt. User-agent names the bot a group of rules applies to. Allow and Disallow set crawl permissions for paths.

Automatic crawling and user-triggered fetching differ

A search crawler collects pages for a service. A user-triggered fetcher visits a page because someone asks for it. Don’t assume the same rules cover both.

ChatGPT-User handles visits made at a user’s request. Robots.txt rules may not apply to those visits, and this agent does not decide whether a site appears in ChatGPT Search, according to OpenAI’s crawler documentation.

An llms.txt file gives readers or tools a route to selected content. It doesn’t grant access or block requests.

Fetching pages is only part of how AI search assembles answers, which can combine sources from the web with model-generated text.

Why separate AI search access from training preferences?

Say you publish product guides and want people to find them through ChatGPT search, but don’t want them used for model training. Blocking every AI bot would work against your search goal. You need to choose rules by purpose, not just by company.

OpenAI lets you make those choices separately. You can allow OAI-SearchBot for search while blocking GPTBot to state that your content should not be used for foundation-model training, according to OpenAI’s bot documentation.

Blocking OAI-SearchBot stops your site from appearing in ChatGPT search answers, though it may still appear as a navigational link, according to OpenAI. Allowing access doesn’t promise a citation or a higher ranking.

Before you edit the file, decide which search services you want to reach your pages and which training uses you accept. Check each provider’s controls, because one company’s rules won’t cover another. For visits made at a user’s request, refer back to the fetching distinction above.

Check for accidental blocks before you treat missing visibility as a content problem. Generative engine optimization addresses work to earn AI mentions beyond simply allowing access.

Map each bot or control token to its documented purpose

Match the name in your file to the job it controls. Google-Extended, for example, is a control token rather than a separate crawler name you’ll see in logs.

Bot or tokenPurposeControl and limit
OAI-SearchBotOpenAI’s ChatGPT searchUse its robots.txt group. A block prevents search-answer inclusion, but navigational links may remain. OpenAI documentation
GPTBotOpenAI model trainingUse its robots.txt group to state your training preference, separate from search access. OpenAI documentation
ChatGPT-UserVisits requested by usersRobots.txt may not apply. This agent doesn’t control ChatGPT Search inclusion. OpenAI documentation
Google-ExtendedSpecified Gemini training and grounding usesUse this token in robots.txt. It has no separate HTTP user-agent string and doesn’t affect Google Search inclusion or ranking. Google documentation

For context on Google’s AI search features, see how AI search works. For how to write the rules, see the robots.txt guide.

Shared-control status

On October 30, 2026, Google announced planned support in 2027 for a shared AI-training preference control based on IETF AIPREF work. Google said it would keep company-specific controls such as Google-Extended.

That announcement describes a plan, not a live control. Don’t invent syntax for it. Check the latest official docs before changing your file.

Apply purpose-specific robots.txt rules safely

Start with your live file, not a blank template. A new bot group can change which rules apply, so review it alongside the restrictions you already have.

  1. Write down the intended change. Name the bot and the purpose you want to control. Record which paths it should be able to fetch and which should stay blocked.

  2. Merge fragments into the existing file. These are examples, not replacement files. The OpenAI fragment allows search crawling while stating a preference against model training, as described in OpenAI’s documentation.

    User-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Allow: /

    The optional Google-Extended fragment below controls specified Gemini training and grounding uses. It doesn’t block Google Search AI features or change Search inclusion or ranking, according to Google.

    User-agent: Google-Extended Disallow: /

    Each fragment is formatted to preserve its line breaks. Before merging, copy it from the rendered page into a plain-text editor and compare the pasted text with the displayed block: each directive should occupy its own line, with a blank line between bot groups. If the lines have collapsed, restore them before publishing.

  3. Keep intended path restrictions. Don’t assume a new named bot group inherits all rules from your general group. Carry over the restrictions that should still apply. See robots.txt group selection and syntax before merging the changes.

    When path rules overlap, the longest matching rule applies, measured in bytes. If matching Allow and Disallow rules are equivalent, Allow should win under RFC 9309.

  4. Publish the checked file. Serve it at the service’s top-level /robots.txt path. Use UTF-8 encoding and the text/plain media type, as required by RFC 9309.

Is llms.txt worth publishing?

Publish llms.txt if you have a clear use for a curated content guide, such as helping a documentation tool find key pages. It’s optional, and it isn’t a standard way to set crawler permissions. Give someone ownership of the file so it stays useful as your site changes.

Google Search ignores llms.txt. Google says it neither improves nor harms Search visibility or rankings, including its generative AI features, in its Search guidance.

OpenAI links to llms.txt as its complete documentation index. It also offers Markdown versions of documentation pages by adding .md to their URLs, as shown in OpenAI’s documentation. That’s an example of publishing documentation, not proof that its crawlers use every site’s llms.txt.

A restrained publishing structure

If you have a use for the file, keep it easy to scan:

  • Site heading: Name the site or documentation set.
  • Short summary: Say what it covers and who it’s for.
  • Context notes: Explain any limits readers need to know.
  • Markdown links: Link to useful pages and briefly describe each one.

Ask the owner to check the links when the source pages change. If no reader or tool needs the file, you can skip it.

Keep XML sitemaps for URL discovery; llms.txt doesn’t replace a sitemap.

Measuring AI visibility tracks appearances in AI answers. Publishing a file isn’t evidence of more citations.

Common mistakes that break access or overstate control

A valid file can still express the wrong choice. Watch for these mistakes when you review a change:

  • Blocking search instead of training: refer back to the separate search and training choices above.
  • Treating every fetch as an automatic crawl: refer back to the ChatGPT-User limits in the bot map.
  • Using Google-Extended to control Search: refer back to its stated scope in the bot map.
  • Confusing a crawl block with removal. Google may still index a blocked URL if it finds links to it elsewhere, according to Google Search Central. Use the indexability and noindex guide for removal and noindex setup.
  • Treating public files as security. Neither robots.txt nor llms.txt protects private content. Use authentication and site security controls to restrict access.
  • Copying rules without testing access. Check bot lists against official docs before you use them. A CDN challenge or firewall block may stop a wanted fetch even when robots.txt allows it. Crawlability is about whether bots can reach content, not whether it enters an index.

How can you verify AI crawler access after deployment?

Test the live site, not just the file in your editor. You need to check what your rules allow and whether other site controls block the same requests. A local test shows access conditions; it doesn’t prove that a provider visited or followed a rule.

  1. Fetch the live file. Check each host you want crawled. Confirm that /robots.txt returns the version you published, using UTF-8 and text/plain as required by RFC 9309.

  2. Test the rules that apply. Choose pages that should be allowed and paths that should be blocked. Test them for each named bot, including OAI-SearchBot and GPTBot. Check CDN caches too; an old file can leave you testing stale rules. Use crawlability checks to look for access barriers beyond robots.txt.

  3. Inspect request logs. Compare server and CDN logs from before and after the change. Look at which paths were requested and what responses they received. Logs can show requests, but not citations or completed training.

  4. Check who made the request. A user-agent string alone doesn’t prove a bot’s identity. Use the provider’s published checks or address ranges where available. Sending a local request with a bot’s name only simulates that request.

  5. Check llms.txt separately. If you publish it, confirm that it loads and its links still lead to the intended pages. For its search limits, refer back to the llms.txt section.

  6. Record who owns the policy. Keep a change log and set a review trigger for updates to provider documentation.

Use AI-answer visibility measurement to track appearances in answers separately from crawler access.

Frequently asked questions

Does a main domain’s robots.txt also control AI crawling of its subdomains?

No. A robots.txt file applies to the service that hosts it, not every subdomain under the same domain. Each subdomain needs its own file at its top-level /robots.txt path, as specified by the Robots Exclusion Protocol. Check each relevant subdomain rather than relying on the main domain’s file.

Will blocking a training crawler remove content already used to train a model?

Don’t treat a robots.txt edit as a way to erase past training. OpenAI documents a GPTBot block as a signal that content should not be used for foundation-model training, not as a removal process for past use. Check OpenAI’s crawler documentation for the scope of that control.

How soon will an AI crawler pick up a robots.txt change?

A change isn’t an instant stop command. There’s no shared refresh deadline for AI crawlers established by the documentation cited here. Check the provider’s guidance and look in your server logs for a fresh robots.txt request, then review the crawl requests that follow.

Sources

  1. Overview of OpenAI Crawlers
  2. List of Google’s common crawlers
  3. Supporting a shared AI training control for websites
  4. RFC 9309 — Robots Exclusion Protocol
  5. RFC 9309 — Robots Exclusion Protocol
  6. Optimizing your website for generative AI features on Google Search
  7. Introduction to robots.txt

About the author: writes the Deep SEO SEO Encyclopedia, a 2026 reference on technical, on-page, local and AI search. Every entry cites the sources linked in its text and is reviewed by Robin Rad before publication.

Put it into practice

Measured on your own site first, then done by people if you want it done for you.

Back to top
WhatsApp +968 9182 2962