Blocking AI Crawlers? Check robots.txt & Cloudflare
What GPTBot, OAI-SearchBot and PerplexityBot do, and how to check robots.txt, Cloudflare and firewalls so AI search can read your store.
Your store may rank fine on Google, yet ChatGPT, Perplexity and Claude never mention it. One common reason is simple: their crawlers can't get into your site. Here's how to check in five minutes.
Know the AI crawlers
AI companies run several crawlers. The key difference is training versus answering questions live:
| Company | Crawler | Used for |
|---|---|---|
| OpenAI | GPTBot | Model training |
| OpenAI | OAI-SearchBot | ChatGPT search results |
| OpenAI | ChatGPT-User | When a user asks ChatGPT to open your page |
| Perplexity | PerplexityBot | Perplexity search results |
| Anthropic | ClaudeBot | Model training |
| Anthropic | Claude-SearchBot / Claude-User | Claude search and user requests |
| Google-Extended | Whether content is used for Gemini models — does not affect Google Search |
Place 1: robots.txt
Open yourdomain.com/robots.txt and look for rules like:
User-agent: GPTBot
Disallow: /Disallow: / blocks the whole site. If you want to opt out of training but still appear in AI search answers, block the training crawlers and allow the search ones:
User-agent: GPTBot
Disallow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /Shopify: robots.txt comes from the theme's robots.txt.liquid template. The default doesn't block these crawlers, so if nobody edited it you're usually fine.
Place 2: Cloudflare (the one people miss)
Many stores sit behind Cloudflare, which offers one-click blocking of AI crawlers — and it may be on by default for newly added domains. Then crawlers are turned away even if robots.txt allows them.
Log in to Cloudflare, open your domain and check the AI Crawl Control / bot settings. At minimum, allow the search crawlers: OAI-SearchBot, PerplexityBot and Claude-SearchBot.
Place 3: firewalls and security plugins
Some WordPress security plugins and hosting firewalls block unknown bots with a 403. If robots.txt and Cloudflare look fine but AI still can't read your site, ask your host.
Allow or block?
It's a business choice:
- Stores that want AI recommendations (most of them): allow search crawlers; decide on training crawlers as you prefer.
- Sites whose content is the product (paid courses, original image libraries): consider blocking training crawlers, but keep search crawlers or you won't appear in AI answers.
Check it in one go
Reading robots.txt and Cloudflare settings by hand is easy to get wrong. A free SGEO Lab check visits your site as the major AI crawlers and shows which are blocked by robots.txt and which by a firewall — in about 30 seconds.
FAQ
Will blocking GPTBot remove me from ChatGPT search?
Usually not. GPTBot is mainly used for model training; ChatGPT search results rely on OAI-SearchBot. To appear in ChatGPT search, make sure OAI-SearchBot is allowed.
Does Cloudflare's free plan block AI crawlers too?
It can. Every Cloudflare plan has settings to block AI crawlers, and on some accounts they are on by default. Check the Bots settings in your Cloudflare dashboard.
How long until robots.txt changes take effect?
Crawlers cache robots.txt. Google usually refreshes it within 24 hours; other crawlers vary but typically pick up the new version within a few days.