AI & Search

Should You Block AI Crawlers in Robots.txt File – What You Gain and What You Lose

Blocking AI crawlers sounds like protecting your work. Done carelessly it removes you from AI answers entirely. Here is which crawler does what, and how to make the decision deliberately.

Key takeaways

  • Training crawlers and retrieval crawlers are different. Blocking the second removes you from AI answers.
  • robots.txt is a request, not a wall. Well-behaved crawlers obey it and scrapers ignore it.
  • Never block Googlebot to stop AI Overviews. It removes you from Google search altogether.
  • If your content exists to win customers, blocking the crawler works against you.

The instruction to block gptbot robots txt gets passed around as though it were obviously correct, and for some publishers it is. For most businesses it is a decision with a real cost on both sides, and the cost is easy to trigger by accident because the crawlers doing very different jobs have confusingly similar names.

Blocking the wrong one removes you from AI answers entirely. Blocking one particular crawler removes you from Google.

Three jobs, three different consequences if you block themTRAININGGPTBot, ClaudeBotLIVE RETRIEVALOAI-SearchBot, PerplexityBotSEARCH INDEXGooglebotIF YOU BLOCK ITYour content is not usedto train future models.No traffic lost today.IF YOU BLOCK ITYou cannot be cited inAI answers at all.This is the costly one.IF YOU BLOCK ITYou disappear fromGoogle entirely.Never do this.Most people who block AI crawlers block all three by accident.
Three categories, three consequences. Most people who block AI crawlers block all three without meaning to.

Which crawler does what

CrawlerRun byWhat it doesBlocking it means
GPTBotOpenAICollects content for training future modelsNot used in training. No effect on citation
OAI-SearchBotOpenAIFetches pages live for ChatGPT searchYou cannot be cited in ChatGPT answers
ChatGPT-UserOpenAIFetches a page when a user asks about it directlyChatGPT cannot open links to your site
ClaudeBotAnthropicTraining collectionNot used in training
PerplexityBotPerplexityIndexes for live answersYou cannot appear in Perplexity results
Google-ExtendedGoogleControls use for Gemini training onlyNot used for Gemini. Search unaffected
GooglebotGoogleSearch index, and AI OverviewsYou vanish from Google search
BingbotMicrosoftBing index, and CopilotYou vanish from Bing and Copilot
The mistake that causes real damage

There is no way to appear in Google search while opting out of AI Overviews. They are served from the same index. Blocking Googlebot to avoid AI Overviews removes you from Google completely. Businesses do this, and the traffic loss is immediate and total.

The trade-off, stated plainly

Allowing crawlers means your work may be used to train systems that can answer questions without sending anyone to your site. That is a genuine grievance and it is the reason the debate exists.

Blocking retrieval crawlers means that when somebody asks ChatGPT or Perplexity to recommend a service like yours, your business is not among the options. Your competitors who allowed access are.

What is your content for?MARKETING CONTENTYou want to be foundALLOW EVERYTHINGPAID OR ORIGINAL WORKResearch, courses, archivesBLOCK TRAINING ONLYPRIVATE OR SENSITIVEClient data, internal docsPUT IT BEHIND A LOGINTHE RULE THAT COVERS MOST BUSINESSESIf it is published to win customers, blocking the crawler works against you.
The answer depends on what the content is for, not on how you feel about AI.

Does robots.txt even work

Partly, and it is worth being clear about the limits.

robots.txt is a voluntary standard from 1994. It has no enforcement. It works because established companies choose to honour it, and OpenAI, Anthropic, Google and Perplexity all state that their crawlers do.

What it does not do is stop anyone determined. Scrapers built to harvest content ignore it, and some use browser-like user agents so they are indistinguishable from visitors. If your concern is a bad actor rather than a named company, robots.txt is not the tool.

It also cannot undo anything. Content already collected is already collected. Blocking today affects future crawling only.

How to write the rules

Your robots.txt sits at yourdomain.com/robots.txt. In WordPress, Rank Math and Yoast both let you edit it without touching files.

To block training while staying citable in AI answers:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

To block everything AI-related, including citation:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Google-Extended
Disallow: /

To block only part of a site, which is often the sensible middle path:

User-agent: GPTBot
Disallow: /research/
Disallow: /courses/
Allow: /
Check before and after

Open yourdomain.com/robots.txt and read what is there now. Plugins, hosts and security tools all add rules, and sites frequently carry blocks nobody remembers adding. Confirm the file loads correctly after every change, because a syntax error in robots.txt can be read far more broadly than intended.

Blocking at server level

If a crawler is ignoring robots.txt, or you want a firmer boundary, blocking happens above WordPress.

Cloudflare offers a one-click AI Scrapers and Crawlers setting under Security, which blocks known AI bots at the edge before they reach your server. It is the simplest option for most sites and it costs nothing on the free plan.

Beyond that, user-agent rules in .htaccess or a firewall rule at the host level will work. Both are more brittle: user agents change, and an over-broad rule can block legitimate services. Test carefully, and check your search traffic afterwards.

What we would suggest, by situation

  • A normal business site, marketing contentAllow everything. You want to be found, and being absent from AI answers costs more than training use does.
  • A site with paid or original researchBlock training crawlers on the paid sections, allow retrieval everywhere. You stay citable without giving away the asset.
  • A publisher earning from page viewsThe genuinely hard case. Blocking retrieval protects the click and reduces reach. Many are negotiating licensing instead.
  • Anything private or client-ownedrobots.txt is the wrong tool. Put it behind a login.
  • An ecommerce siteAllow everything. Product visibility in AI shopping answers is becoming a real channel.
The question worth asking

Why does this content exist? If it was published to bring in customers, blocking the systems people ask for recommendations works against the reason you wrote it. If it is the product itself, protect it properly rather than with a text file.

What not to do

  • Do not block Googlebot to avoid AI Overviews. You will lose Google search entirely.
  • Do not copy a robots.txt from another site. You will inherit rules that do not fit yours.
  • Do not block everything as a precaution. Decide deliberately, per crawler.
  • Do not rely on robots.txt for anything confidential. It is a request, and the file itself is public.
  • Do not forget to check it after a migration. Staging robots.txt files reaching production is one of the most common causes of a site disappearing from search.
A five minute robots.txt audit01Open yourdomain.com/robots.txt and read itMost sites have rules nobody remembers adding02Note which AI crawlers appearTraining, retrieval, or both03Confirm Googlebot is not blockedThe single most damaging mistake here04Decide what you actually wantTraining use and citation are separate choices05Write the rules per crawlerNever a blanket block as a precaution06Record the decision alongside the fileSo the next person does not undo itIf it is published to win customers, blocking works against you.
Fifteen minutes, once, and then write down what you decided.

A five minute audit

Open your robots.txt now and read it. Note which AI crawlers appear, whether Googlebot is mentioned at all, and whether anything is blocked that you did not intend. Then decide, once, what you actually want and write it down alongside the file so the next person does not undo it.

Most sites we look at have never had this decision made deliberately. The rules present are whatever a plugin added or an old developer left behind. Reviewing it is a fifteen minute job that sits naturally within technical SEO work, and it is worth doing before it becomes the reason a site quietly stopped appearing anywhere. If your robots.txt is generated by a plugin or a caching layer rather than a real file, our development team can sort out which one is actually in charge.

Crawler controlSENSIBLEDAMAGINGBlock training, allow retrievalUse Cloudflare for a firmer boundaryPut private material behind a loginCheck robots.txt after every migrationDecide per crawler, deliberatelyBlocking Googlebot to avoid AI OverviewsCopying robots.txt from another siteBlocking everything as a precautionRelying on robots.txt for confidential filesLeaving a staging robots.txt in production
One of these mistakes removes you from Google entirely.

Frequently asked questions

How do I block GPTBot in robots.txt?

Add a block with User-agent: GPTBot followed by Disallow: / to the robots.txt file at your site root. That stops OpenAI using your content for training. It does not stop OAI-SearchBot, which handles live retrieval for ChatGPT search, so your pages can still be cited in answers.

Does GPTBot respect robots.txt?

OpenAI states that GPTBot honours robots.txt, and independent checks generally support that. The wider point is that robots.txt is a voluntary standard. Well-behaved crawlers from established companies follow it. Scrapers built to take content ignore it entirely, and the file offers no protection against them.

Will blocking AI crawlers hurt my Google rankings?

Blocking GPTBot or ClaudeBot has no effect on Google search. Blocking Google-Extended stops your content being used for Gemini training while leaving search unaffected. Blocking Googlebot removes you from Google search completely, and people do this by accident when trying to block AI.

Can I stop AI from using my content entirely?

Not reliably. robots.txt only stops crawlers that choose to obey it. Server-level blocking by user agent or IP goes further and can be evaded. Content already used in training cannot be withdrawn. The only firm protection is not publishing it openly.

Should a small business block AI crawlers?

Usually not. If your content exists to bring in customers, being readable by the systems people increasingly ask for recommendations is an advantage. Blocking makes sense for paid material, original research you sell, or archives that represent your commercial value.

What is the difference between GPTBot and OAI-SearchBot?

GPTBot collects content that may be used to train future models. OAI-SearchBot fetches pages live so ChatGPT can answer a question and cite sources. Blocking GPTBot keeps your work out of training while remaining citable. Blocking OAI-SearchBot removes you from those answers.

Not sure where your site stands?

We will look at it and tell you honestly what is working and what is wasted. No pitch.

Get a Free Audit

Related Articles

3 articles
Social Media

Your Reels Are Not Getting Views: How Distribution Actually Works

Reels stuck at 200 views while everyone else seems to reach thousands. Instagram distributes in rounds, and most...

· 7 min read Read →
SEO

Your Google Rankings Dropped: Working Through the Causes in Order

Rankings fell and nobody can say why. Most people start by blaming an algorithm update, which is the...

· 11 min read Read →
Social Media

Instagram Reach Collapsed: Shadowban, Algorithm, or Your Content?

Reach fell off a cliff and every article blames the algorithm or a shadowban. There are three distinct...

· 7 min read Read →

Give Me the Latest Articles!

One email a month. What is actually working right now in SEO, paid ads, and business growth - straight from our live client work. No filler.


By subscribing you agree to our Privacy Policy and consent to us using your contact data for newsletter purposes.

Free discovery call

Want These Results for Your Business?

Our team handles SEO, paid ads, and website work for 20+ clients across India.

  • Google Partner
  • HubSpot Certified
  • 25+ years combined experience
10x Traffic growth in 12 months 100+ Keywords ranking in paid search

No pitch - just an honest conversation about what you are trying to do.