Sector 84, Gurgaon 122004, Haryana · Monday to Saturday, 9 AM to 5 PM +91 9818450754 [email protected]

GPTBot robots.txt Rules: Should You Allow or Block AI Crawlers Like PerplexityBot?

AI crawler robot reading a web page while robots.txt rules allow some bots and block others
In this article
  1. What is robots.txt, and does it work on AI crawlers?
  2. Which AI crawlers visit your site, and what does each one do?
  3. Should you block GPTBot?
  4. Should you block PerplexityBot?
  5. Should you allow ChatGPT crawler access?
  6. What about Google AI Overviews, Gemini and Bing Copilot?
  7. How do Cloudflare’s AI crawler settings affect your robots.txt?
  8. Which robots.txt setup should you use?
  9. Template: visible but not trained (recommended for most content sites)
  10. Template: maximum visibility
  11. Template: block AI crawlers completely
  12. How do you add AI crawler rules to robots.txt?
  13. Practical example: the dental clinic that vanished from ChatGPT
  14. Frequently asked questions
  15. Does blocking GPTBot remove my site from ChatGPT?
  16. Is PerplexityBot used for AI training?
  17. Will blocking AI crawlers hurt my Google rankings?
  18. Do all AI crawlers obey robots.txt?
  19. How long does a robots.txt change take to work?
  20. Can I block AI bots from only part of my website?
  21. Is llms.txt a replacement for robots.txt?
  22. Get your AI crawler rules right

You open your server logs and find visitors you never invited: GPTBot, PerplexityBot, ClaudeBot. Some are reading your pages to train AI models. Others are fetching them so ChatGPT or Perplexity can quote you in an answer. Your GPTBot robots.txt rules decide which of these visits you welcome and which you turn away.

The tricky part is this. Blocking the wrong bot can quietly remove you from AI search, while blocking the “right” one may not stop anything at all. Many websites copy a “block all AI bots” list from a forum and lose visibility they actually wanted.

This guide explains what each AI crawler does, which ones really follow robots.txt, and the exact rules we recommend for most business websites in 2026.

Key takeaways

• GPTBot collects content to train OpenAI models. Blocking it does not remove you from ChatGPT search. OAI-SearchBot controls that.

• PerplexityBot builds Perplexity’s search index, and Perplexity says it is not used to train AI models. Blocking it mainly costs you citations.

• User triggered fetchers such as ChatGPT-User and Perplexity-User may not follow robots.txt, because a real person asked for the page.

• Google-Extended opts you out of Gemini training and grounding. It does not affect Google Search rankings or AI Overviews.

• For most businesses that want leads, the smart default is: allow search and answer bots, then make a separate, deliberate choice about training bots.

What is robots.txt, and does it work on AI crawlers?

robots.txt is a plain text file at the root of your domain (yourdomain.com/robots.txt) that tells automated crawlers which parts of your site they may visit. It is a polite request, not a lock. OpenAI, Anthropic, Google and Perplexity say their main crawlers follow it, but nothing technically forces any bot to obey.

The rules follow the Robots Exclusion Protocol, which was published as an official internet standard (RFC 9309) in September 2022. Each group of rules starts with a User-agent line that names a bot, followed by Allow or Disallow lines for paths on your site.

One detail catches a lot of site owners out. A crawler follows only the group that matches its name most specifically. If you write a group for GPTBot, it ignores everything under User-agent: *. So if you want an admin folder hidden from every bot, you need to repeat that rule inside your named groups too.

Which AI crawlers visit your site, and what does each one do?

AI companies now run separate bots for separate jobs. There are three main types: training crawlers that collect content to build models, search crawlers that index pages so an assistant can cite them, and user fetchers that load a page live because someone asked about it. Each one has its own robots.txt name.

Here are the bots that matter most right now, based on each company’s own documentation.

Company robots.txt name What it does Follows robots.txt? What happens if you block it
OpenAI GPTBot Collects content to train OpenAI models Yes Your content is kept out of future training. ChatGPT search is not affected.
OpenAI OAI-SearchBot Indexes pages for ChatGPT search Yes OpenAI says your site will not be shown in ChatGPT search answers.
OpenAI ChatGPT-User Visits a page when a ChatGPT user or Custom GPT asks for it OpenAI says rules “may not apply” Limited effect
Perplexity PerplexityBot Builds the Perplexity search index Yes You drop out of the sources Perplexity links to
Perplexity Perplexity-User Fetches a page live for a user’s question Perplexity says it generally ignores robots.txt Limited effect
Anthropic ClaudeBot Collects content that may be used to train Claude Yes Future content is excluded from training
Anthropic Claude-SearchBot Indexes pages to improve Claude’s search answers Yes Lower visibility in Claude search results
Anthropic Claude-User Fetches pages when a Claude user asks a question Yes Claude cannot read your page for that user
Google Google-Extended A control token, not a separate crawler. Covers Gemini training and grounding Yes No effect on Google Search or AI Overviews
Common Crawl CCBot Builds an open web dataset that many AI projects use Yes Kept out of future Common Crawl datasets

OpenAI also lists a fourth bot, OAI-AdsBot, which checks landing pages for ChatGPT ads. Version numbers in user agent strings change often, but the robots.txt names above stay the same, so always match on the name.

Three types of AI crawlers: training bots switched off, search bots and user fetchers switched on
Treat training, search and user fetch bots as separate decisions.

Should you block GPTBot?

Block GPTBot only if you have a clear reason to keep your content out of OpenAI’s training data, such as paid research, original datasets or content you license to others. Blocking GPTBot does not remove you from ChatGPT search. That is handled by OAI-SearchBot, a separate bot with its own rule.

For a typical service business, ecommerce store or SaaS company, most of your public content is marketing. It exists to be found. Letting it into training data costs you very little, and blocking it brings no traffic benefit.

For publishers who earn money when people read the full article, the picture is different. A training bot takes your work and sends no visitors back. Blocking GPTBot while allowing OAI-SearchBot is a fair middle path: you stay citable in ChatGPT search, but your archive is not used for training.

The most common mistake we see is the opposite one. A site blocks GPTBot, OAI-SearchBot and ChatGPT-User together, believing it has only opted out of “training”, and then wonders why it never appears in ChatGPT answers.

Should you block PerplexityBot?

For most businesses, no. Perplexity says PerplexityBot exists to surface and link websites in its search results, and that it is not used to crawl content for AI foundation models. Blocking it mostly costs you citations and referral visits from Perplexity, without protecting your content from training.

There is a trust question worth knowing about. In August 2025, Cloudflare published a report saying that when Perplexity’s declared bots were blocked, it saw undeclared crawlers impersonating Chrome on macOS and rotating through IP addresses outside Perplexity’s published ranges. Cloudflare then added rules to block that behaviour for its customers.

Separately, Perplexity’s own documentation says Perplexity-User generally ignores robots.txt, because the fetch is requested by a person. So if you truly need Perplexity kept out, robots.txt is not enough. A firewall rule or your CDN’s bot controls is the stronger tool.

Should you allow ChatGPT crawler access?

Yes, if you want to appear in ChatGPT answers. To allow ChatGPT crawler access for search, allow OAI-SearchBot and ChatGPT-User in robots.txt. These are the bots that find, read and link your pages when people use ChatGPT search. Allowing GPTBot is a separate choice that only affects training.

Allowing a bot in robots.txt is only half the job. If your firewall, security plugin or CDN returns an error to that bot, your Allow line means nothing. OpenAI publishes the IP ranges for its bots (for example openai.com/searchbot.json), so your hosting team can allowlist them if a security tool keeps blocking genuine OpenAI traffic.

OpenAI also notes that it can take about 24 hours after a robots.txt change for its search systems to adjust. Do not panic if nothing changes in the first hour.

What about Google AI Overviews, Gemini and Bing Copilot?

Google AI Overviews and AI Mode are built on the normal Google Search index, so they depend on Googlebot, not Google-Extended. Google states that Google-Extended does not affect a site’s inclusion or ranking in Google Search. Blocking it only opts you out of Gemini training and grounding in Gemini apps and Vertex AI.

So never block Googlebot to “stop AI”. That removes you from Google Search completely. If you want to limit how much of your text Google shows in AI features, use snippet controls such as nosnippet or max-snippet on specific pages instead.

The same logic applies to Microsoft. Copilot answers draw on the Bing index, so blocking Bingbot would remove you from both Bing Search and Copilot. Bing supports noarchive and nocache meta tags if you want to limit how your content is used in its AI answers.

If you want your pages chosen as sources in these answers, our guide on how to rank in Google AI Overviews covers the content side.

How do Cloudflare’s AI crawler settings affect your robots.txt?

If your site runs on Cloudflare, its AI settings can override your robots.txt in practice. Cloudflare can block AI bots at its network edge before they reach your server, and its managed robots.txt feature adds its own rules above yours. Check your dashboard before assuming your file is the only thing deciding who gets in.

Here is what has changed recently:

  1. From 1 July 2025, Cloudflare started asking new domains whether to allow or block AI crawlers, with blocking switched on by default.
  2. From 15 September 2026, Cloudflare blocks training and agent crawlers by default on pages that show ads, for new domains and for free plan users who have not changed their settings. Search crawlers stay allowed.
  3. Cloudflare warns that blocking training crawlers can also block multi purpose crawlers such as Googlebot, Applebot and Bingbot, even when search crawlers are allowed. If you run AdSense, check this setting carefully.
  4. Cloudflare’s managed robots.txt adds a Content Signals line such as Content-signal: search=yes, ai-train=no, use=reference, which states how you want your content used.

At Balhara Infotech, this is now one of the first things we check in a technical audit when a client tells us “ChatGPT never mentions us”. The robots.txt looks fine, but the CDN is quietly returning errors to every AI bot.

Which robots.txt setup should you use?

Choose your setup based on what you want from AI search. Most businesses fit one of three options. The key is to treat search bots and training bots as two separate decisions, rather than blocking or allowing “AI” as one group.

Setup Best for Search and answer bots Training bots
Maximum visibility Agencies, local businesses, SaaS, ecommerce Allow Allow
Visible but not trained Bloggers, publishers, content heavy sites Allow Block
Full block Paid content, private research, legal reasons Block Block

At Balhara Infotech, we set most client websites to maximum visibility or visible but not trained. We almost never recommend a full block for a business that depends on being found.

# AI search and answer bots: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Claude-SearchBot
User-agent: Claude-User
Allow: /
Disallow: /wp-admin/

# AI training bots: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

# All other bots, including Googlebot and Bingbot
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example.com/sitemap.xml

Template: maximum visibility

If you want every AI bot to read your site, you do not need named groups at all. A clean default file is enough, as long as nothing else on your server blocks them.

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example.com/sitemap.xml

Template: block AI crawlers completely

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://www.example.com/sitemap.xml

Remember that user fetchers may still visit after a full block. If you need a hard stop, add a firewall or CDN rule as well. If you would rather not write this by hand, our free Robots.txt Generator builds a file for you.

How do you add AI crawler rules to robots.txt?

Adding AI crawler rules takes about 15 minutes. You check your current file, choose a setup, edit the file at the root of your domain, then test that each bot gets the response you expect. Here are the steps.

  1. Check your current file. Open yourdomain.com/robots.txt in a browser and note what is already there.
  2. Pick your setup. Use the table above to decide between maximum visibility, visible but not trained, or full block.
  3. Edit the file. On WordPress, Yoast SEO and Rank Math both include a robots.txt editor. You can also upload a physical robots.txt file to your root folder through cPanel or FTP. A physical file replaces the virtual one WordPress creates.
  4. Keep your Sitemap line. It helps every crawler, including AI search bots, find your important pages.
  5. Test the rules. In Google Search Console, the robots.txt report shows which version Google fetched and flags errors. Then run your domain through our AI Crawler Checker to see which AI bots are allowed or blocked.
  6. Check your CDN and security plugin. Make sure Cloudflare, Wordfence or your host’s firewall is not blocking the bots you just allowed.
  7. Review every quarter. New bots appear and old names get retired, so put a reminder in your calendar.
robots.txt file with AI crawler rules showing allowed search bots and blocked training bots
A visible but not trained robots.txt setup for AI crawlers.

Practical example: the dental clinic that vanished from ChatGPT

Here is a situation we come across often in audits. A dental clinic in Gurgaon wanted to “protect its content”, so its developer pasted a long list of AI bots into robots.txt with Disallow: / under each one. The list included training bots, but also OAI-SearchBot, PerplexityBot and Claude-SearchBot.

Months later, the owner asked ChatGPT for the best dental clinics near Sector 84. Two competitors appeared. Her clinic did not, even though it ranked well on Google.

The fix was simple. We rewrote the file using the “visible but not trained” template, checked that Cloudflare was not blocking AI search bots, and kept the clinic’s service pages and Google Business Profile up to date. Once the search bots could read the site again, the clinic was back in the running for citations, which then depend on content quality and reputation like any other ranking.

The lesson works for any business, in any country: decide what each bot is for before you block it.

Frequently asked questions

Does blocking GPTBot remove my site from ChatGPT?

No. GPTBot only collects content for training OpenAI’s models. ChatGPT search uses OAI-SearchBot, and OpenAI says sites that block OAI-SearchBot will not be shown in ChatGPT search answers. Block only GPTBot if you want to opt out of training but stay visible.

Is PerplexityBot used for AI training?

Perplexity says it is not. Its documentation describes PerplexityBot as a crawler that surfaces and links websites in Perplexity search results, and says it is not used to crawl content for AI foundation models.

Will blocking AI crawlers hurt my Google rankings?

Not if you leave Googlebot alone. Google says the Google-Extended token does not affect inclusion or ranking in Google Search. Blocking bots from OpenAI, Perplexity or Anthropic has no effect on Google either.

Do all AI crawlers obey robots.txt?

No. robots.txt is voluntary. The major training and search bots from OpenAI, Anthropic, Google and Perplexity say they follow it, but user triggered fetchers like ChatGPT-User and Perplexity-User may not, and some unknown scrapers ignore it completely. Use a firewall or CDN rules for a hard block.

How long does a robots.txt change take to work?

Usually within a day. Google generally caches robots.txt for up to 24 hours, and OpenAI says its search systems can take about 24 hours to adjust after you update the file. Other bots pick up changes the next time they fetch it.

Can I block AI bots from only part of my website?

Yes. Instead of Disallow: /, list the folders you want to protect, such as Disallow: /premium/ or Disallow: /research/. The bot can still read the rest of your site.

Is llms.txt a replacement for robots.txt?

No. llms.txt is a proposed file that points AI tools to your most useful content. It does not control access. robots.txt is still the file AI companies say they read to decide what to crawl.

Get your AI crawler rules right

Your GPTBot robots.txt rules are a business decision, not just a technical one. Allow the bots that bring visibility, make a clear choice about training, and check that your CDN agrees with your file. A ten line change today can decide whether ChatGPT, Perplexity and Claude can recommend you tomorrow.

If you are not sure what your site is currently telling AI crawlers, our Technical SEO team can check robots.txt, CDN settings and server logs together. Get a free SEO audit and we will show you exactly which AI bots can see your site, in plain language.

Written by Hariom Balhara

Hariom Balhara is the founder of Balhara Infotech, an SEO and digital marketing agency in Gurgaon. He helps local businesses, startups and brands across India get found on Google and in AI answers, and writes about SEO, local search and website growth in plain, practical language.