1. Blog
  2. E-commerce SEO

E-commerce SEO

Robots.txt for AI crawlers: GPTBot, OAI-SearchBot, PerplexityBot

Learn how to manage robots.txt AI crawlers, block GPTBot robots.txt, and control OAI-SearchBot and PerplexityBot access to your site.

To control AI crawlers, edit your robots.txt — but remember each bot is a separate token, so blocking GPTBot won't stop OAI-SearchBot or PerplexityBot. Only about 14% of top domains with a robots.txt file carry any AI directive at all, according to ContextBolt, so most stores decided this by accident.

Here's the part that trips people up. Blocking GPTBot keeps your product copy out of OpenAI's model training. It does nothing to stop ChatGPT from recommending your competitor when a shopper types "where can I buy a linen summer dress?" That answer is powered by a different crawler entirely. If you want to show up there, you need to let the right bots in.

Key takeaways
  • Each AI bot is matched by its User-agent string — one block rule never covers them all.
  • GPTBot = training. OAI-SearchBot = ChatGPT search and shopping citations. Treat them separately.
  • Allow OAI-SearchBot and PerplexityBot if you want AI product recommendations.
  • CDN and WAF rules sit above robots.txt and can silently override it.
  • GPTBot, ClaudeBot and PerplexityBot don't execute JavaScript — client-side-only content is invisible to them.

Should you block AI crawlers?

Short version: it depends on what you're trying to protect — and most stores protect the wrong thing.

robots.txt lets you decide which AI bots crawl your store. Blocking a training crawler and blocking a search crawler do very different things.

  • Blocking GPTBot keeps your content out of OpenAI's model training. It does not change whether ChatGPT cites you in search or shopping answers.
  • OAI-SearchBot is the crawler behind ChatGPT's search and shopping citations. Block it and you disappear from those answers.
  • PerplexityBot powers Perplexity's answers. Allow it if you want to appear in product recommendations there.

My recommendation for most e-commerce stores: allow the search and shopping bots, and only block training crawlers if keeping product copy out of datasets genuinely matters to you. For a growing Shopify or WooCommerce brand, visibility usually beats secrecy.


Every major AI crawler in one table

Use this quick reference table to decide which AI crawler user-agent to block or allow when you edit your robots.txt. The token in the first column is the exact string you place after User-agent:.

User-agent tokenWhat it controlsrobots.txt directive to blockrobots.txt directive to allow
GPTBotOpenAI model trainingUser-agent: GPTBot + Disallow: /User-agent: GPTBot + Allow: /
OAI-SearchBotChatGPT search & shopping citationsUser-agent: OAI-SearchBot + Disallow: /User-agent: OAI-SearchBot + Allow: /
ChatGPT-UserLive user-triggered ChatGPT fetchesUser-agent: ChatGPT-User + Disallow: /User-agent: ChatGPT-User + Allow: /
PerplexityBotPerplexity search answersUser-agent: PerplexityBot + Disallow: /User-agent: PerplexityBot + Allow: /
Perplexity-UserLive user-triggered Perplexity fetchesUser-agent: Perplexity-User + Disallow: /User-agent: Perplexity-User + Allow: /

OpenAI documents GPTBot, OAI-SearchBot and ChatGPT-User as three separate tokens in its official bots documentation, and Perplexity lists PerplexityBot and Perplexity-User in its crawler reference. Because each token is independent, you need one block per bot you want to control.

There are now more than a dozen named AI crawlers, and each one is a separate line item in your robots.txt. The core list — GPTBot, ClaudeBot, Google-Extended, CCBot, Bytespider — has been stable since 2023, while the full reference reached 20 documented bots as of April 2026, according to OpenShadow. New ones appear a few times a year whenever a big AI company ships a product.

20 documented AI crawler user agents (April 2026) OpenShadow, 2026
2–4× major new AI bots appear per year OpenShadow, 2026 openshadow.io
BotOperatorPurposeRespects robots.txt?Stance for e-commerce
GPTBotOpenAITrainingYesBlock or allow (your choice)
OAI-SearchBotOpenAISearch / shopping citationsYesAllow
PerplexityBotPerplexitySearch answersPartially — see noteAllow
ClaudeBotAnthropicTrainingYesBlock or allow
Google-ExtendedGoogleGemini trainingYesBlock or allow
GooglebotGoogleSearchYesAlways allow
CCBotCommon CrawlTrainingYesBlock or allow
Meta-ExternalAgentMetaTrainingYesBlock or allow
AmazonbotAmazonProduct / AI trainingYesBlock or allow
BytespiderByteDance (TikTok)TrainingYesBlock or allow

Amazon is worth a closer look because it runs three crawlers, not one. Per Amazon's developer docs, Amazonbot handles product improvement and may train AI models, Amzn-SearchBot powers search experiences like Alexa, and Amzn-User answers live user queries. The last two do not crawl content for generative model training. Each user-agent setting is independent, and Amazon caches your robots.txt from the last 30 days if it can't fetch the live file.

The part nobody tells you

PerplexityBot gets a "partially" rating for a reason. On August 4, 2025, Cloudflare documented tests in which Perplexity used an undeclared crawler with a generic browser user-agent, rotating IPs, and multiple ASNs after its declared crawlers were blocked. robots.txt alone may not stop it — CDN or WAF rules are the only robust defence.

Why each bot needs its own robots.txt line

Here are the concrete directives you'll actually type. In robots.txt, User-agent names the bot, Disallow: / blocks your whole site from that bot, Allow: / explicitly permits it, and an empty Disallow: (nothing after the colon) also means "crawl everything." Group rules by bot — a blank line separates one User-agent block from the next.

  • Block one AI crawler: put User-agent: GPTBot on its own line, then Disallow: / directly underneath.
  • Allow one AI crawler: use User-agent: OAI-SearchBot followed by Allow: /.
  • Block a specific folder only: Disallow: /checkout/ keeps a bot out of that path while leaving the rest crawlable.
  • Never use wildcards to block AI bots: User-agent: * catches Googlebot too — always name AI crawlers individually.

robots.txt rules are matched by User-agent string, not by company. Put Disallow: / under User-agent: GPTBot and you've blocked exactly one bot — OAI-SearchBot keeps crawling happily.

Think of each crawler as a different employee at the same company. Telling the receptionist that Dave can't come in does nothing to stop Sara, Priya, or the delivery driver. This is the single most common mistake I see store owners make. If you haven't checked whether AI bots can even reach your store yet, start with our guide on how to check if ChatGPT, Perplexity and Google AI can see your store.


Copy-paste robots.txt snippets

If you only want one block to paste and adjust later, use the complete config below. It explicitly blocks the training crawlers, explicitly allows the search and shopping crawlers, and keeps Googlebot untouched — a safe starting point you can edit line by line.

Complete starter config — block GPTBot training, allow AI search
# === AI training crawlers: blocked ===
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Bytespider
Disallow: /

# === AI search & shopping crawlers: allowed ===
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Perplexity-User
Allow: /

# === Classic search: always allow ===
User-agent: Googlebot
Allow: /

# Point crawlers at your sitemap
Sitemap: https://yourstore.com/sitemap.xml

Replace yourstore.com with your real domain, save the file at the root (/robots.txt), and allow roughly 24 hours for OAI-SearchBot changes to propagate through OpenAI's systems.

Pick one. Drop it at the root of your domain (yourstore.com/robots.txt). Done.

1. Allow everything (recommended for most stores)
# GEO-friendly default. Omitting a rule = allow by default,
# but we list the key AI bots explicitly for clarity.
User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
Allow: /

User-agent: Googlebot
Allow: /

Use this if you want maximum AI visibility. Nothing is blocked, and the search and shopping bots can cite your products freely.

2. Block training, allow search & shopping
# Keep product copy out of training datasets,
# but stay visible in AI search answers.
User-agent: GPTBot
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Googlebot
Allow: /

This is the nuanced choice: your copy stays out of model training, but ChatGPT and Perplexity can still cite you. My pick for brands that care about both.

3. Block all AI bots (not recommended for e-commerce)
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: PerplexityBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: Bytespider
Disallow: /
Warning

If you run a Shopify or WooCommerce store, this option means you won't appear in ChatGPT Shopping results or Perplexity product recommendations — among the fastest-growing discovery channels in 2026. For the shopping side specifically, see our guide on the ChatGPT Shopping product feed for Shopify and WooCommerce stores.

Two things to know before you panic about results. A robots.txt change for OAI-SearchBot can take approximately 24 hours to take effect in OpenAI's systems, according to this OpenAI bots guide — so give it a day.

And here's a reason blanket blocking may be pointless: GPTBot doesn't execute JavaScript. Vercel's December 2024 analysis of 569 million GPTBot requests found no evidence of script execution, even though scripts were fetched in 11.5% of requests, as documented by nqz.ai. ClaudeBot (370 million requests) and PerplexityBot (24.4 million) behaved the same way. If your storefront relies on client-side rendering, these bots may already see blank pages.


How to verify AI bots are crawling you

You edited the file. Great. But did it work? Here's how to check without a developer — in four steps.

  1. Test your syntax. Google Search Console's robots.txt report validates syntax, and the rules apply to non-Google bots too. If a rule is malformed, it'll flag it.
  2. Check your server access logs. Grep the user-agent field for GPTBot, OAI-SearchBot, or PerplexityBot. Shopify merchants can't reach raw server logs, but if you front your store with Cloudflare, its analytics dashboard shows bot traffic directly.
  3. Read your Cloudflare / WAF logs. These sit above robots.txt. If a firewall rule blocks "bots" generically, it can shut out OAI-SearchBot even when your robots.txt says Allow.
  4. Run a third-party AI visibility check. Wudo's free tool shows which AI engines can currently reach and cite your store — no login needed.

About halfway through sorting this out myself, I put together a one-page robots.txt cheat sheet PDF with all three snippets and a verification checklist — grab it here if you'd rather not scroll back up.

hundreds of millions of new pagesHundreds of millions of new pages were discovered by OpenAI when OAI-SearchBot was allowed (Cloudflare–OpenAI pilot, ~1% of the network) — natielimelech.com, 2026.en.natielimelech.com

CDN and WAF rules override robots.txt

robots.txt is a polite request — it only works on bots that choose to respect it. CDN-level firewall rules are enforced regardless of what the bot wants. If you use Cloudflare, Fastly, or any WAF, make sure a broad bot-management rule isn't silently blocking the crawlers you actually want.

A quick Cloudflare expression to explicitly allow OAI-SearchBot looks like this:

Cloudflare firewall expression
(http.user_agent contains "OAI-SearchBot") -> Allow

Perplexity shows why the WAF layer matters. Cloudflare's August 2025 investigation found it running 3 to 6 million undeclared crawling requests per day under a generic Chrome user agent, alongside 20 to 25 million declared requests, per ContextBolt. No robots.txt line catches a bot pretending to be a browser.

A robots.txt rule is a sign on the door. A WAF rule is a lock. For bots that play nice, the sign is enough. For the ones that don't, you need the lock.

FAQ: robots.txt and AI crawlers

What is the exact line to block GPTBot in robots.txt?

Two lines: User-agent: GPTBot on the first line, then Disallow: / on the next. That blocks OpenAI's training crawler from your entire site. It does not affect OAI-SearchBot, ChatGPT-User, or any non-OpenAI bot — each needs its own block. Confirm the token spelling against OpenAI's official bots documentation before you deploy.

How do I allow OAI-SearchBot and PerplexityBot but still block GPTBot?

Create three separate User-agent blocks. Put Disallow: / under User-agent: GPTBot, then Allow: / under User-agent: OAI-SearchBot and again under User-agent: PerplexityBot. This is the standard setup for stores that want AI search and shopping visibility without feeding model training. The complete starter config above does exactly this.

Does one robots.txt rule block all AI crawlers at once?

No. robots.txt matches by User-agent token, not by company or category, so there is no single rule that catches every AI crawler. You can stack multiple User-agent lines above a shared Disallow: /, but you still have to name each bot — GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot and the rest — explicitly. Using User-agent: * would also block Googlebot, which you almost never want.

Which robots.txt AI Crawler Strategy Fits You?

Answer a few quick questions to find the right robots.txt approach for managing GPTBot, OAI-SearchBot, and PerplexityBot on your site.

What is your main goal for your website content?

How do you feel about your content being used to train AI models like GPT?

Do you currently rely on AI-powered search tools like Perplexity or ChatGPT search for traffic?

How often do you update your robots.txt file?

Want these results by email? Add your address and we'll send them over.

Does blocking GPTBot hurt my Google rankings?

No. GPTBot is OpenAI's training crawler and has zero connection to Googlebot, which indexes pages for Google Search. They read different rules and feed different systems. The only ranking risk here is accidentally adding Googlebot to a block list — so keep it explicitly allowed.

Will blocking AI crawlers protect my content from being used in training?

Partially. Compliant named crawlers will stop fetching new content, but anything already captured in older datasets stays there, and undeclared scrapers ignore the file entirely. robots.txt also can't retroactively remove your text from a model that already trained on it. For genuine control, combine robots.txt with WAF rules.

My Shopify store uses a CDN — does robots.txt still work?

Yes, robots.txt is still served and respected by compliant bots. The catch is precedence: a CDN or WAF firewall rule is enforced before the bot ever reads your robots.txt. If the two disagree, the firewall wins. Audit both layers whenever a bot you expect to see isn't showing up in logs.

How often should I update my robots.txt?

Every 3 to 6 months is a sensible cadence. New AI crawlers launch a handful of times a year, usually tied to a product release. A short quarterly review — add any new bots, confirm your allow and block choices still match your strategy — keeps the file from quietly going stale.

I blocked everything — why is Perplexity still showing my content?

Because robots.txt only governs crawlers that identify themselves honestly. Perplexity has been documented using undeclared crawlers with generic browser user agents after its named bot was blocked. The fix is a WAF rule, not another robots.txt line. If you want to confirm what each engine currently sees, check whether ChatGPT, Perplexity and Google AI can see your store.

Will allowing OAI-SearchBot help me appear in ChatGPT Shopping?

It's the prerequisite, not the finish line. OAI-SearchBot has to reach your pages first, but ChatGPT Shopping also reads a structured product feed to build recommendations. Pair an open robots.txt with a clean feed. For Perplexity's equivalent, see our guide on the Perplexity Merchant Program.


What to do next

You can now make the call with confidence. Allow OAI-SearchBot and PerplexityBot if you want AI shopping citations, block training crawlers only if dataset exposure genuinely bothers you, and never touch Googlebot.

Allowing OAI-SearchBot helped OpenAI discover hundreds of millions of new pages in the Cloudflare pilot, and GPTBot fetched no executed JavaScript across 569 million analysed requests — natielimelech.com 2026, nqz.ai 2024 (en.natielimelech.com). Then check your WAF, because it outranks robots.txt every time.

By Gabriel Gaciu

Powered by Wudo

Sources

  1. ContextBolt contextbolt.com14% of top domains carry AI directives; Perplexity's undeclared crawling volume
  2. natielimelech.com en.natielimelech.com24-hour OAI-SearchBot propagation; Cloudflare–OpenAI pilot scale
  3. OpenShadow openshadow.io20 documented AI bots; list stable since 2023
  4. Amazon Developer developer.amazon.comThree distinct Amazon crawlers; 30-day robots.txt cache
  5. nqz.ai nqz.aiVercel’s analysis of GPTBot traffic found 569 million requests in a single month, with no…
Claim ledger14 sentences with numbers traced to 5 sources · 2 rewritten or removed

Checked against the cited pages before publishing, on . Numbers no source supported were rewritten or removed. Cited pages re-checked : 6 of 6 still online.

  1. 24 hours A robots.txt change for OAI-SearchBot can take approximately 24 hours to take effect in OpenAI's systems.“How to block OAI-SearchBot To block OAI-SearchBot across the whole site, add these lines to your robots.txt: text User-agent: OAI-SearchBot Disallow: / It can take about 24 hours for a change to OAI-SearchBot’s rules to take effect in OpenAI’s systems.” en.natielimelech.com, 2026
  2. 14% Only about 14% of the top 10,000 domains that have a robots.txt file have any AI-specific directive in it at all, meaning most sites have made this decision by accident (through omission).“Only about 14% of the top-10,000 domains that have a robots.txt have any AI directive in it at all, so most sites have made this decision by accident.” contextbolt.com, 2026
  3. 3–6 million requests per day (undeclared) Cloudflare's August 2025 investigation found Perplexity was running 3 to 6 million undeclared crawling requests per day under a generic Chrome user agent with rotating IPs across tens of thousands of domains.“In August 2025 Cloudflare published an investigation finding that Perplexity was using undeclared crawlers to evade no-crawl directives, running 3 to 6 million requests a day under a generic Chrome user agent with rotating IPs across tens of thousands of domains, alongside its declared 20 to 25 million.” contextbolt.com, 2025
  4. 20–25 million requests per day (declared) Perplexity's declared crawling volume alongside its undeclared traffic was 20 to 25 million requests per day.“In August 2025 Cloudflare published an investigation finding that Perplexity was using undeclared crawlers to evade no-crawl directives, running 3 to 6 million requests a day under a generic Chrome user agent with rotating IPs across tens of thousands of domains, alongside its declared 20 to 25 million.” contextbolt.com, 2025
  5. 2–4 times per year Major new AI bot user agents appear 2–4 times per year, typically when a large AI company launches a new product or changes their crawling strategy.“Major new AI bot user agents appear 2–4 times per year, typically when a large AI company launches a new product or changes their crawling strategy.” openshadow.io, 2026
  6. 20 bots As of April 2026, the complete reference list contains 20 documented AI crawler and training bot user agents.“Last updated: April 2026 20 bots listed Quick-copy bot list Lowercase strings for case-insensitive substring matching.” openshadow.io, 2026
  7. 30 Amazon crawlers use a cached copy of robots.txt from the last 30 days when the live file cannot be fetched“They will fetch host-level robots.txt files or use a cached copy from the last 30 days.” developer.amazon.com, 2026
  8. 569 million Vercel's analysis of GPTBot traffic found 569 million requests in a single month, with no evidence of JavaScript execution in any of them.“t AI crawlers—including GPTBot, ClaudeBot, and PerplexityBot—do not execute JavaScript, meaning any page that relies on client-side rendering appears blank to them; Vercel's December 2024 analysis of 569 million GPTBot requests found no evidence of script execution despite occasional file fetches.” nqz.ai, 2024
  9. 11.5% GPTBot fetched JavaScript files in only 11.5% of requests, and despite this, no script execution was detected.“ChatGPT's crawler fetched JavaScript files in 11.5% of requests and Claude's in 23.84% — but fetching a script and executing it are different things, and the study found no evidence of execution in either case (Vercel, "The rise of the AI crawler," Dec 17, 2024).” nqz.ai, 2024
  10. 370 million ClaudeBot generated 370 million requests in the same month-long Vercel dataset, also with no JavaScript execution detected.“In the same dataset, GPTBot generated 569 million requests in a month, Claude 370 million, AppleBot 314 million, and PerplexityBot 24.4 million.” nqz.ai, 2024
  11. 24.4 million PerplexityBot generated 24.4 million requests in the Vercel dataset month, with no JavaScript execution detected.“In the same dataset, GPTBot generated 569 million requests in a month, Claude 370 million, AppleBot 314 million, and PerplexityBot 24.4 million.” nqz.ai, 2024

Can AI engines read your store?

Free 10-second check: crawler access, structured data, answer-ready content, meta tags.

Run the free check