Blog/Should You Block AI Crawlers? A robots.txt Guide for ChatGPT, Claude, Perplexity and Gemini
AI SearchSEOTechnical SEO9 Min Read

Should You Block AI Crawlers? A robots.txt Guide for ChatGPT, Claude, Perplexity and Gemini

Each AI company now runs separate bots for model training, search and live user requests. Here is what each one does and how to choose which to allow.

Amresse Farrow

Amresse Farrow

Nov 30, 20269 min read

Should You Block AI Crawlers? A robots.txt Guide for ChatGPT, Claude, Perplexity and Gemini

The Short Answer

For most businesses that want customers to find them, the answer is: do not block the AI search bots. Blocking them takes you out of the answers that ChatGPT, Claude and Perplexity give when someone asks for a recommendation in your industry.

Training is a separate question. OpenAI, Anthropic and Google each let you opt out of having your pages used to train future models without leaving their search results, because they now use different bot names for different jobs. So the real decision is not "AI yes or no." It is three smaller decisions: training, search, and live fetches on behalf of a user.

This guide explains what each of the main bots does, what happens when you block it, and the exact robots.txt lines for the most common choices.

The Three Jobs AI Bots Do

Think of AI crawlers in three groups.

Training crawlers collect public pages that may be used to train the next generation of a company's models. Blocking them is a statement about how your content is used. It does not, on its own, remove you from any search product.

Search crawlers index pages so an AI assistant can find and cite them when it answers a question. These behave much like Googlebot does for regular search. If you block them, your pages generally stop appearing as sources in that assistant's search answers.

User-triggered fetchers visit a page only when a person asks the assistant to look something up or open a link. They do not crawl your site on a schedule. Because a human started the request, some companies say their fetchers may not follow robots.txt at all, which matters if you were counting on robots.txt to keep a page out of AI tools.

The Main AI Bots and What Blocking Them Does

The table below covers the companies behind the assistants most of your customers use. The names in the first column are the user-agent tokens you write in robots.txt.

Bot (robots.txt name)CompanyJobIf you block it
GPTBotOpenAITrainingYour content is flagged as not to be used for training OpenAI's foundation models
OAI-SearchBotOpenAISearchYour pages are not shown in ChatGPT search answers, though they can still appear as plain navigational links
ChatGPT-UserOpenAIUser-triggered fetchOpenAI says robots.txt rules may not apply, because a user started the request
ClaudeBotAnthropicTrainingOpts you out of training without blocking Claude's search bot or user fetcher
Claude-SearchBotAnthropicSearchAnthropic says this may reduce your visibility and accuracy in Claude's search results
Claude-UserAnthropicUser-triggered fetchClaude cannot retrieve your page when a user asks about it
PerplexityBotPerplexitySearchYour site is not surfaced or linked in Perplexity's search results
Perplexity-UserPerplexityUser-triggered fetchPerplexity says this fetcher generally ignores robots.txt
Google-ExtendedGoogleGemini training and grounding outside SearchNo effect on Google Search inclusion or ranking

Sources: OpenAI's crawler documentation, Perplexity's crawler documentation, Google's Google-Extended documentation, and Search Engine Journal's summary of Anthropic's bot documentation, which reports that all three Anthropic bots honor robots.txt. Companies add and rename bots from time to time, so check these pages before you make a change.

Google Is a Special Case

Google does not run a separate AI crawler. Its pages are fetched by the same Googlebot that powers regular search, and Google-Extended is only a robots.txt token that tells Google how it may use what it already crawled.

According to Google's documentation, blocking Google-Extended controls whether your content is used to train future Gemini models and to ground answers in Google's generative AI products outside of Search. Google states plainly that it does not affect your inclusion in Google Search and is not a ranking signal.

What Google-Extended does not control is AI Overviews and AI Mode inside Google Search. For those, Google points site owners to a separate "Search generative AI control" in Google Search Console. Blocking Googlebot itself would remove you from Google Search entirely, so never do that to avoid AI features.

In short: block Google-Extended if you do not want your pages used for Gemini training, and leave Googlebot alone.

How to Decide What to Allow

Start with what your website is for.

If your site exists to win customers, such as a local service business, a B2B company, an e-commerce store or an agency, allow the search bots and the user-triggered fetchers. Those are the bots that put your name in front of someone who just asked an assistant "who does this near me?" or "which tool should I use?" Being cited there works like ranking in a search result, and you cannot be cited if the assistant cannot read your pages.

Whether to allow training crawlers is a values and business call more than an SEO one. Allowing them costs you nothing in visibility. Blocking them costs you nothing in AI search visibility either, as long as you block only the training bots by name. Many marketing sites allow everything because their content is written to be shared. Publishers, course creators and anyone whose content is the product often block training while keeping search open.

If your content sits behind a paywall or is meant only for customers, robots.txt is the wrong tool. Robots.txt is a public request, not a lock, and the user-triggered fetchers above may not follow it. Put private content behind a login.

For reference, Logical Leap's own robots.txt allows all of the bots in the table above, because our goal is for both search engines and AI assistants to understand what we do.

robots.txt Rules for the Most Common Choices

Your robots.txt file lives at the root of your domain, for example yourdomain.com/robots.txt. Each rule group starts with one or more User-agent lines naming the bots it applies to, followed by Allow or Disallow lines. "Disallow: /" means the whole site.

Your goalWhat to put in robots.txt
Allow everything (most business sites)User-agent: * followed by Allow: / (or no AI-specific rules at all)
Stay in AI search, opt out of trainingOne group naming GPTBot, ClaudeBot and Google-Extended, followed by Disallow: / and nothing that blocks OAI-SearchBot, Claude-SearchBot or PerplexityBot
Opt out of OpenAI training onlyUser-agent: GPTBot followed by Disallow: /
Keep one folder out of AI searchA group naming OAI-SearchBot, Claude-SearchBot and PerplexityBot, followed by Disallow: /folder-name/

Two details trip people up. First, under the robots.txt standard (RFC 9309), a crawler obeys the group that names it and falls back to the "User-agent: *" group only if no group names it. So once you add a group for GPTBot, the rules in your general group no longer cover GPTBot. Copy any rules you still need, such as blocking an admin area, into the new group. Second, changes are not instant. OpenAI and Perplexity both say it can take about 24 hours for their systems to pick up a robots.txt change.

Check for Blocks You Did Not Choose

A surprising number of sites block AI search bots without anyone deciding to. The usual causes are:

A security or CDN service with an AI bot setting switched on. Services such as Cloudflare now offer controls that block AI crawlers, and depending on how they are set they can catch search bots along with training bots. Look in your firewall or bot settings, not just robots.txt.

A robots.txt template copied from another site, or rules added by a plugin or an earlier developer. Open yourdomain.com/robots.txt in a browser and read every line.

A firewall rule or rate limit that returns errors to unfamiliar user agents. Perplexity, for example, asks site owners to allow both its user agent and its published IP ranges, so a strict firewall can block it even when robots.txt allows it.

Pages that only render with JavaScript. Bots that fetch your HTML and do not run scripts may see an empty page. If you view your page source and cannot find your main text in it, an AI crawler may not find it either.

Being Crawlable Is Step One, Not the Finish Line

Allowing the right bots only makes you eligible to be cited. Whether an assistant actually names you depends on the same things that make a page useful in regular search: a clear answer to the question near the top of the page, specific details such as services, locations and prices where you publish them, consistent business information across the web, and structured data that matches what visitors see.

Google's guidance on AI Overviews and AI Mode says the underpinnings of its long-standing advice carry across to these experiences, and that meeting its technical requirements covers you for AI formats too. If you want to limit how Google shows your content there, the same snippet controls apply: nosnippet, data-nosnippet, max-snippet and noindex. That matches what we see when we audit sites for AI visibility: the businesses that get cited tend to be the ones with clear, well-structured pages, not the ones with a special trick.

If you run a local business, our checklist for getting named in ChatGPT and Google AI answers covers the listings, pages and reviews that matter next. For the bigger picture of where AI search is heading and why the organic window matters, read AI Search Is Still Free Real Estate. Wondering about the llms.txt file people mention alongside robots.txt? Our guide to what llms.txt is and whether you need one covers what it does and doesn't do.

How Logical Leap Can Help

Our SEO and AI search team checks how your brand currently shows up in ChatGPT, Perplexity, Gemini and Google, finds anything blocking the bots you want to reach your site, and restructures your key pages so assistants can understand and cite them. If your site itself is the problem, such as content that only appears after JavaScript runs or a slow, hard-to-crawl build, our web design team can rebuild it on a crawl-friendly foundation.

Plans and what is included are on the pricing page. Or book a free strategy call and we will look at your robots.txt and bot settings with you.

Level up your business

This is your sign to level up

Stress-free creative support, delivered fast.