robots.txt and llms.txt for AI Crawlers: A Complete Guide

robots.txt and llms.txt for AI Crawlers: A Complete Guide

Somewhere on your site, a file most people never open is quietly deciding who gets in. That file is robots.txt, and it’s been around since 1994, built for search engines, not AI. A newer file called llms.txt showed up in 2024, promising something bigger: a curated map of your best content, built specifically for AI models.

One of these files actually controls access. The other is a request that most AI companies still haven’t agreed to honor. This guide covers both, through Generative Engine Optimization, what each one actually does, and how to set them up correctly.

RIja Ghayas

·

September 18, 2026

·

11 min read

Quick answer

How Do You Configure robots.txt and llms.txt for AI Crawlers?

How Do You Configure robots.txt and llms.txt for AI Crawlers?

To handle AI crawlers correctly, treat robots.txt and llms.txt as two different jobs. robots.txt controls which bots can fetch your pages at all, and it works today, since major AI companies mostly respect it.

To handle AI crawlers correctly, treat robots.txt and llms.txt as two different jobs. robots.txt controls which bots can fetch your pages at all, and it works today, since major AI companies mostly respect it.

llms.txt gives AI systems a curated summary of your site. It’s newer, optional, and far less consistently used than people assume.

The work breaks into four areas:

The work breaks into four areas:

Sort your AI crawlers into two groups. Training crawlers feed a model’s future knowledge. Search crawlers power what a model cites right now. Blocking one doesn’t affect the other.

Decide what you actually want to allow. Some brands want AI citations but not AI training. Some want neither. There’s no universal right answer, only a decision you should make on purpose.

Write your robots.txt rules explicitly. Don’t rely on defaults. A lot of hosting platforms block AI crawlers automatically, without telling you.


Add llms.txt if it fits your site. It won’t boost your rankings. It can genuinely help AI tools understand a large, complex site faster.

Not sure where your site stands right now?

Not sure where your site stands right now?

How It Works

How Do AI Crawlers Actually Read Your Site?

How Do AI Crawlers Actually Read Your Site?

AI crawlers fall into two families, and they behave nothing alike. Knowing the difference changes every decision you make from here.

AI crawlers fall into two families, and they behave nothing alike. Knowing the difference changes every decision you make from here.

01

Training Crawlers Build a Model’s Future Knowledge

GPTBot, ClaudeBot, and similar bots fetch content in bulk, without urgency, to feed a future training run. Block one of these, and your content simply never enters that model’s training data. It has no effect on today’s AI answers.

02

Search and Agent Crawlers Power Live Answers

OAI-SearchBot, Claude-SearchBot, and PerplexityBot fetch content in something closer to real time, to answer questions being asked right now. Block one of these, and you can disappear from that platform’s AI answers immediately.

03

robots.txt Is a Request, Not a Lock

It’s formalized as an actual internet standard, RFC 9309, but it only works because crawlers choose to follow it. Most major AI labs say they comply. Not all of them actually do.

Comparison

How Is llms.txt Different From robots.txt?

How Is llms.txt Different From robots.txt?

The short answer: one file controls access, and the other one offers guidance that access-honoring bots may or may not read.

The short answer: one file controls access, and the other one offers guidance that access-honoring bots may or may not read.

robots.txt

llms.txt

Compliance

Mandatory in practice, every reputable crawler checks it

Compliance

Optional, a courtesy some AI systems extend

Function

Blocks or allows, a binary switch per bot, per path

Function

Curates, points AI systems toward your best content

Origin

Built for search engines in 1994, formalized as RFC 9309

Origin

Proposed by Jeremy Howard of Answer.AI in September 2024

Official status

An accepted internet standard

Official status

A community convention, not an official standard

Google has stated directly that it doesn’t use llms.txt for ranking or for its AI features. OpenAI and Anthropic haven’t made the same blanket commitment either, though both show up reading it in some contexts.

Context

Why Does This Matter Right Now?

Why Does This Matter Right Now?

Two things are pushing this decision onto every site owner’s desk right now, whether they’re ready or not.

01

Cloudflare Is Changing Its Default AI Bot Settings

Cloudflare is changing its default AI bot settings on September 15, 2026, but not for every site. The new defaults apply to new domains onboarding to Cloudflare and to existing free-tier accounts that haven’t set an explicit preference, and only on pages that show ads. If you’re in a configured paid zone, nothing changes automatically, but it’s still worth confirming your settings say what you think they say.

02

Perplexity Has Been Caught Running Undeclared Crawlers

Cloudflare published evidence that Perplexity used crawlers outside its declared user-agents, rotating identities to get around robots.txt blocks. Perplexity has also stated that its user-triggered fetcher, Perplexity-User, counts as an agent rather than a bot, and therefore isn’t bound by robots.txt at all. That stance has caused real disputes with publishers.

Metrics

What Should You Actually Block or Allow?

What Should You Actually Block or Allow?

Every AI crawler falls into one of these categories. Decide deliberately, rather than defaulting to whatever your hosting platform shipped with.

Training Crawlers to Consider Blocking

GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, and meta-externalagent. Blocking these keeps your content out of future model training. It has zero effect on whether you show up in AI answers today.

Training Crawlers to Consider Blocking

GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, Bytespider, and meta-externalagent. Blocking these keeps your content out of future model training. It has zero effect on whether you show up in AI answers today.

Search and Agent Crawlers to Consider Allowing

OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, and Perplexity-User. Blocking these removes you from that platform's live AI answers. Allowing them is usually the right call if AI visibility is a goal.

Search and Agent Crawlers to Consider Allowing

OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, and Perplexity-User. Blocking these removes you from that platform's live AI answers. Allowing them is usually the right call if AI visibility is a goal.

Two Deprecated Tokens You Can Ignore

Claude-Web and anthropic-ai still show up in old templates. Anthropic no longer uses either one. Leaving old rules for them in place does no harm.

Two Deprecated Tokens You Can Ignore

Claude-Web and anthropic-ai still show up in old templates. Anthropic no longer uses either one. Leaving old rules for them in place does no harm.

Google-Extended Deserves Its Own Note

It isn't a crawler. It's an opt-out token. Blocking it stops your content from training Gemini, and it has no effect on regular Googlebot indexing or your normal search rankings.

Google-Extended Deserves Its Own Note

It isn't a crawler. It's an opt-out token. Blocking it stops your content from training Gemini, and it has no effect on regular Googlebot indexing or your normal search rankings.

Framework

What Does a Working Setup Actually Look Like?

What Does a Working Setup Actually Look Like?

Here’s a working robots.txt block that allows AI search and agent crawlers while blocking training crawlers, a common middle-ground setup.

01

01

Test Every Change in Staging First

A single misplaced Disallow can silently remove you from AI answers with no warning, no error message, nothing.

02

02

Set a Quarterly Review Reminder

New crawlers launch regularly, and existing ones occasionally rename themselves. A rule you set once can quietly go stale.

03

03

Keep llms.txt Genuinely Curated

If you’re adding one, the whole point is a short, useful map of your best content. A dumped copy of your full sitemap defeats the purpose entirely. Only the H1 is technically required. A one-line summary and a handful of links to your best pages covers most sites well.

robots.txt

// Block training crawlers

User-agent: GPTBot

User-agent: GPTBot

Disallow: /

Disallow: /

User-agent: ClaudeBot

User-agent: ClaudeBot

Disallow: /

Disallow: /

User-agent: Google-Extended

User-agent: Google-Extended

Disallow: /

Disallow: /

User-agent: CCBot

User-agent: CCBot

Disallow: /

Disallow: /

User-agent: Bytespider

User-agent: Bytespider

Disallow: /

Disallow: /

// Allow search & agent crawlers

User-agent: OAI-SearchBot

User-agent: OAI-SearchBot

Allow: /

Allow: /

User-agent: ChatGPT-User

User-agent: ChatGPT-User

Allow: /

Allow: /

User-agent: Claude-SearchBot

User-agent: Claude-SearchBot

Allow: /

Allow: /

User-agent: Claude-User

User-agent: Claude-User

Allow: /

Allow: /

User-agent: PerplexityBot

User-agent: PerplexityBot

Allow: /

Allow: /

How It Works

How Do You Keep Your AI Crawler Rules Working Long-Term?

How Do You Keep Your AI Crawler Rules Working Long-Term?

01

Treat Your Rules as Living Configuration, Not a One-Time Setup

New AI crawlers launch several times a year, and existing ones occasionally rename themselves or split into new bots, the way OpenAI and Anthropic have both done. A robots.txt file you wrote once and forgot about drifts out of date quietly.

02

Re-Check Your Rules Every Time You Change Infrastructure

A new CDN, security plugin, or hosting migration can silently overwrite your robots.txt or add its own AI-blocking defaults. Treat any infrastructure change as a trigger to verify your crawler rules still say what you think they say.

03

Follow Each AI Lab’s Own Documentation, Not Just Practitioner Roundups

GPTBot, ClaudeBot, and PerplexityBot’s actual behavior is defined by their operators, not by blog posts about them. Anthropic, OpenAI, and Perplexity all publish and periodically update their own crawler documentation, that’s the source to trust when it conflicts with secondhand advice.

04

Revisit Your Allow/Block Decisions as Your AI Visibility Goals Change

A blanket block made in 2024 out of caution may no longer match what you actually want in 2026. Review your training vs. search crawler decisions against your current AI visibility goals, not the assumptions you made when you first set them.

Debunked

What llms.txt Myths Should You Ignore?

What llms.txt Myths Should You Ignore?

The honest story behind llms.txt gets left out of most guides, and it changes how you should think about the file entirely:

The honest story behind llms.txt gets left out of most guides, and it changes how you should think about the file entirely:

llms.txt will boost your AI search rankings. It won’t, by design. Jeremy Howard, the person who proposed it, built it to help coding tools and AI agents parse documentation faster. He never pitched it as a visibility or citation tool.

Google reads and uses llms.txt for AI Overviews. It doesn’t. Google has said directly that Search, including its AI features, doesn’t use llms.txt at all.

Every major AI company officially supports llms.txt. Support is genuinely mixed. Anthropic and Perplexity show the most consistent engagement with it. OpenAI’s behavior is less clear and unconfirmed publicly. Treat any claim of universal support with real skepticism.

Blocking a crawler in robots.txt stops all of that company’s access. Not always. Some companies split training and search into entirely separate crawlers with separate user-agents. Blocking one doesn’t touch the other.

Add llms.txt because it’s low-cost and genuinely useful for a complex site, not because someone promised it would move your rankings.

Tools

How Do You Verify Which Crawlers Are Actually Visiting?

How Do You Verify Which Crawlers Are Actually Visiting?

A user-agent string is just a text label a bot chooses to send. It proves nothing on its own.

A user-agent string is just a text label a bot chooses to send. It proves nothing on its own.

Check Your Server Logs Directly

Look for GPTBot, ChatGPT-User, ClaudeBot, PerplexityBot, and similar strings in your access logs. This shows you which crawlers are actually visiting, not just which ones you’ve configured rules for.

Verify by IP Range Where It Matters

Real GPTBot and Googlebot traffic can be confirmed against published IP ranges. Anyone can send a request claiming to be GPTBot. Only an IP check actually proves it.

Use Google’s Rich Results Test and Search Console

These confirm your site is reachable and correctly structured for Google’s own crawlers, separate from the AI-crawler question entirely.

Track the Aftermath

Re-run this check quarterly. New crawlers launch regularly enough that a one-time audit goes stale.

Watch for

What Are the Most Common Mistakes?

What Are the Most Common Mistakes?

Blocking AI Crawlers by Accident

A security plugin or a CDN default can block AI bots without anyone deciding to. Check your actual live robots.txt, not the one you think you configured.

Confusing Google-Extended With Googlebot

Blocking Google-Extended only opts you out of Gemini training. It does not touch your regular Google Search rankings.

Trusting Every User-Agent String at Face Value

Spoofed traffic exists. If a bot's behavior looks off, verify the IP before you trust the name.

Treating llms.txt as a Ranking Lever

It’s curation, not citation currency. Set your expectations accordingly, and you won’t be disappointed when it doesn’t move a single ranking.

Checklist

How Do You Measure Whether Your Crawler Rules Are Working?

How Do You Measure Whether Your Crawler Rules Are Working?

Confirm your live robots.txt matches what you intended. Check the actual file at yoursite.com/robots.txt, not the config you think you saved, hosting platforms and security plugins can silently override it.

Check your server logs for crawler activity. Look for GPTBot, ClaudeBot, PerplexityBot, and similar strings to see who’s actually visiting, not just who you’ve written rules for.

Verify traffic against published IP ranges for anything that matters. A user-agent string alone can be spoofed by anyone.

Track AI citations and mentions after any change. A robots.txt edit should show up in your AI visibility data within a few weeks if it’s working as intended.

Re-run this check quarterly. New crawlers launch regularly enough that a one-time audit goes stale.

Frequently Asked Questions

Frequently Asked Questions

Frequently Asked Questions

robots.txt controls which bots can crawl your site at all. Most major AI crawlers respect it, though not all of them, and it's enforced by good faith, not by law. llms.txt is a newer, optional file that gives AI tools a curated summary of your best content. It doesn't control access, and major labs don't use it for ranking.
Some do, some don't, and it depends on the crawler. GPTBot and ClaudeBot generally respect it. Perplexity has been caught running undeclared crawlers that ignore it, and Perplexity has argued its user-triggered fetcher counts as an agent, not a bot, so it isn't bound by the same rules.
No. Google has said directly that it doesn't use llms.txt for Search or for its AI features. Adding the file won't help or hurt your Google visibility either way.
You can. AI crawlers split into two families: training crawlers and search crawlers. Blocking a training crawler like GPTBot only affects future model training. Blocking a search crawler like OAI-SearchBot affects whether you show up in that platform's live answers.
Check your server access logs for the crawler's user-agent string. For anything that matters, confirm it against the company's published IP ranges too, since a user-agent name alone can be faked by anyone.

Author

Rija Ghayas

SEO Specialist, Fibonacci Agency

Rija Ghayas is an SEO Specialist at Fibonacci Agency with over 3 years of hands-on experience driving organic growth and improving search visibility for clients across the UAE, United States, and Norway...

Rija Ghayas

SEO Specialist, Fibonacci Agency

Rija Ghayas is an SEO Specialist at Fibonacci Agency with over 3 years of hands-on experience driving organic growth and improving search visibility for clients across the UAE, United States, and Norway...

Rija Ghayas

SEO Specialist, Fibonacci Agency

Rija Ghayas is an SEO Specialist at Fibonacci Agency with over 3 years of hands-on experience driving organic growth and improving search visibility for clients across the UAE, United States, and Norway...

Related Articles

Chat GPT

How to Optimize Your Website for ChatGPT

Learn how to optimize your site for ChatGPT...

GEO vs SEO

What's the Difference Between GEO and SEO?

SEO and GEO both improve online visibility...

perplexity

How to Optimize Your Website for Perplexity

Learn how to optimize your site for Perplexity...

perplexity

How to Optimize Your Website for Perplexity

Learn how to optimize your site for Perplexity...

Ready to Get Your Crawler Access Right?

Our AI SEO audits check exactly this: which crawlers can actually reach your content, and which ones are quietly blocked without you knowing.

Ready to Get Your Crawler Access Right?

Ready to Get Your Crawler Access Right?

All Rights Reserved –  Copyright © 2018-2026 Fibonacci Agency

info@fibonacciagency.com

All Rights Reserved –  Copyright © 2018-2026 Fibonacci Agency

info@fibonacciagency.com

All Rights Reserved –  Copyright © 2018-2026 Fibonacci Agency

info@fibonacciagency.com