How to Control AI Crawlers with Robots.txt (GPTBot, PerplexityBot, ClaudeBot)

Quick answer: You control AI crawlers with robots.txt rules that name each bot — GPTBot, PerplexityBot, ClaudeBot and Google-Extended — and either allow it or disallow it from your pages. Allowing them means AI engines can read your content and cite you; blocking them keeps your content out of AI answers but also out of AI citations. The right choice depends on your business: most sites that want AI visibility should let AI crawlers in, and only block specific folders (like admin, login or private content) rather than the whole site.

AI crawlers are now a permanent part of the web. ChatGPT, Perplexity, Claude and Google’s AI tools all send bots to read pages, and those bots decide what gets cited in AI answers. Robots.txt is the switch that controls them — and many site owners have it set wrong without knowing it.

What AI crawlers are (and why they visit your site)

An AI crawler is a bot that fetches web pages so an AI system can read them. It works like Googlebot, but its job is different: instead of building a search index, it gathers content that AI models use to answer questions, summarize topics and cite sources.

The main AI crawlers in late 2026 are:

  • GPTBot — OpenAI’s crawler. It fetches pages for ChatGPT Search and for training data. OpenAI publishes its IP ranges and says GPTBot respects robots.txt.
  • PerplexityBot — Perplexity’s crawler. It fetches pages to answer questions with citations. Perplexity is the most citation-driven AI engine, so its bot visits pages that answer questions well.
  • ClaudeBot — Anthropic’s crawler for Claude. It fetches pages Claude uses when answering with web access.
  • Google-Extended — Google’s crawler for AI products. It is separate from Googlebot: Googlebot builds the search index, while Google-Extended feeds Google’s AI features (including Gemini and AI Overviews). Blocking Google-Extended does not affect your Google rankings.
  • CCBot — Common Crawl’s bot. It is not an AI company’s bot, but its data is widely used to train AI models, so it matters for AI training even though it does not produce citations.
  • ChatGPT-User — a separate OpenAI user agent that fetches a specific page when a ChatGPT user asks about it. It is not a crawler in the usual sense; it fetches on demand.

Each of these bots reads your robots.txt file and follows the rules written for its user-agent name. If you write no rules for them, the default is that they can crawl everything — unless a broader rule (like User-agent: *) blocks them.

How robots.txt controls crawlers

Robots.txt is a plain text file at the root of your site (for example, https://seoauditfixer.com/robots.txt). Crawlers request it before they fetch any page, and it tells them which parts of the site they may and may not visit.

The syntax is simple:

User-agent: GPTBot
Disallow: /

User-agent: PerplexityBot
Allow: /
  • User-agent names the bot the rule applies to. * means every bot.
  • Disallow lists paths the bot must not fetch. Disallow: / blocks the whole site. Disallow: /admin/ blocks only that folder.
  • Allow lists paths the bot may fetch, and can override a broader Disallow for a specific folder.

Rules are read top to bottom, and the most specific matching rule wins. A rule for GPTBot overrides a rule for * when GPTBot is the bot reading the file.

For the full background on robots.txt, see our guide: How to Fix Broken Robots.txt Rules Blocking Googlebot.

Step 1: Find out which AI crawlers are visiting you

Before changing anything, check what is already happening. Look in your server logs or your analytics tool for requests from AI user-agents:

  • Search the logs for GPTBot, PerplexityBot, ClaudeBot, Google-Extended, CCBot and ChatGPT-User.
  • Note which pages they fetch and how often. A healthy sign is regular visits to your important content pages.
  • Check your robots.txt file as it stands today. Many sites unknowingly block AI crawlers with an old Disallow: / rule, a wildcard rule, or a security plugin that blocks “unknown” bots.

If no AI crawler has ever visited, that does not mean you are blocked — it may mean AI engines have not found your pages worth reading yet. The fixes in our AI Citations guide and AEO Checklist explain how to become citable once the door is open.

Step 2: Decide your policy — allow or block?

This is a business decision, not a technical one. Both choices are legitimate.

Allow AI crawlers when:

  • You want AI citations and traffic. If ChatGPT, Perplexity or Google AI Overviews cite your pages, you get brand visibility and referral clicks. You cannot be cited by a bot that cannot read you.
  • Your content is public and you want it found. Blog posts, guides, product pages and documentation are meant to be read — by people and by AI.
  • You sell expertise. For consultants, agencies and publishers, being the source AI recommends is a competitive advantage.

Block AI crawlers when:

  • Your content is your product. News paywalls, paid courses, licensed data and proprietary research lose value if AI gives the answer away for free.
  • You have legal or licensing reasons. Content you do not own the rights to republish, or content under contract, should not be fed to AI systems.
  • You object on principle. Some publishers block AI crawlers because they do not want their work used to train models without compensation. That is a valid position — just make it deliberately, not by accident.

Most small and medium business sites should allow AI crawlers on their public content and block only the private parts. Blocking everything by default gives up AI visibility for no benefit.

Step 3: Write the robots.txt rules

Here are the patterns for the common cases. Edit your robots.txt file directly (in WordPress, Rank Math’s robots.txt editor works, or edit the file on the server).

Allow all AI crawlers (recommended for most sites)

User-agent: GPTBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Google-Extended
Allow: /

If you already have a User-agent: * block, make sure it does not disallow the whole site. An Allow rule for a named bot overrides a Disallow in the * block, but the cleanest setup is to keep the * block permissive and write specific rules only where you need them.

Block AI crawlers from the whole site

User-agent: GPTBot
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

Block AI crawlers from specific folders only

User-agent: GPTBot
Disallow: /wp-admin/
Disallow: /private/
Disallow: /members-only/

User-agent: PerplexityBot
Disallow: /wp-admin/
Disallow: /private/
Disallow: /members-only/

This is the pattern most sites should use: public content open, private content closed.

Block AI training but allow AI search citations

This is the trickiest case, because the same bot often does both jobs. OpenAI separates them: GPTBot is used for training data, while ChatGPT-User and OAI-SearchBot fetch pages for live answers. So you can write:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

That blocks OpenAI from using your content for training while still letting ChatGPT read your pages when answering a user — which is what gets you cited. Note that this split exists for OpenAI; other providers may not separate training and search crawling, so check each provider’s current documentation before relying on it.

Step 4: Test that the rules work

Robots.txt mistakes are silent — a wrong rule can block the wrong bot for months before anyone notices. Test after every change:

  1. Use Google’s robots.txt tester in Search Console to check how Googlebot reads the file. It does not test AI bots, but it catches syntax errors.
  2. Fetch the robots.txt file in a browser and read it yourself. Check for typos in user-agent names — GPTbot and GPTBot are treated the same by most parsers, but a misspelled name like GPTBott matches nothing.
  3. Check server logs after a few days. AI crawlers should appear (if allowed) or disappear (if blocked) in line with your rules.
  4. Use the provider’s own tools. OpenAI and Perplexity both publish their crawler user-agents and IP ranges; verify the requests in your logs come from those ranges, because bad actors sometimes fake AI user-agent strings.
  5. Watch for the “blocked by robots.txt” status in Search Console for your own pages — that catches accidental blocks of Googlebot, which would hurt rankings directly.

Common robots.txt mistakes with AI crawlers

  • Blocking AI bots with a wildcard rule. A User-agent: * block with Disallow: / blocks every bot, including AI crawlers you meant to allow. Named-bot rules override it, but only if they are written correctly.
  • Confusing Google-Extended with Googlebot. Blocking Google-Extended does not hurt your Google rankings — it only affects AI features. Blocking Googlebot does hurt rankings. Keep the two separate in your mind and in your file.
  • Assuming robots.txt is a security tool. Robots.txt is a polite request, not a lock. Respectful crawlers follow it; scrapers and bad bots ignore it. Do not put sensitive content behind robots.txt and assume it is hidden — if it must stay private, use authentication or noindex plus login protection instead.
  • Forgetting that blocking also blocks citations. If you block PerplexityBot and then wonder why Perplexity never cites you, the answer is in your robots.txt file.
  • Copying someone else’s robots.txt. Rules written for another site’s structure (its admin folder, its private areas) may block or allow the wrong things on yours. Write your own rules for your own folders.
  • Never updating the file. AI providers add new crawlers and rename old ones. Check the major providers’ crawler documentation once or twice a year and update your rules.

How this fits into your AI visibility strategy

Robots.txt is the gate, not the strategy. Opening the gate does not get you cited — it only makes citations possible. Once AI crawlers can read your pages, the work that earns citations is the same work in our AI Citations guide: direct answers, clear structure, topical authority, freshness and trust signals. And the full technical checklist is in our Technical SEO Audit Checklist 2026.

Think of it in three layers: robots.txt lets the bots in, good content gives them something worth citing, and brand authority makes them choose you over the competition.

FAQ

Does blocking GPTBot hurt my Google rankings?
No. GPTBot is OpenAI’s crawler, not Google’s. Blocking it only affects ChatGPT — it will not be able to read or cite your pages. Your Google rankings are controlled by Googlebot, which is a separate bot with separate robots.txt rules.

What is the difference between Googlebot and Google-Extended?
Googlebot crawls pages to build Google’s search index — it decides your rankings. Google-Extended crawls pages to feed Google’s AI products like Gemini and AI Overviews. Blocking Google-Extended does not affect your search rankings, but it does reduce your chances of appearing in Google’s AI answers.

Can I block AI training but still get cited in AI search?
Sometimes. OpenAI separates the two: GPTBot is for training, while OAI-SearchBot and ChatGPT-User fetch pages for live answers, so you can block GPTBot and allow the search bots. Other providers may use the same bot for both jobs, so check each provider’s documentation before relying on this split.

Is robots.txt enough to keep my content out of AI systems?
No — robots.txt is a request that respectful crawlers follow, not a lock. Content that is already public can be copied by other means, and some scrapers ignore robots.txt entirely. If content must stay private, protect it with login authentication, not just a robots.txt rule.

How do I know if an AI crawler is actually visiting my site?
Check your server logs for the AI user-agent names — GPTBot, PerplexityBot, ClaudeBot, Google-Extended, CCBot. You can also watch referral traffic in analytics: Perplexity and ChatGPT send referral visits when users click a citation, which proves your pages are being read and cited.

Leave a Reply

Your email address will not be published. Required fields are marked *