Fix library · Shopify
Let AI search crawlers in through robots.txt on Shopify
A rule meant for AI training bots, or a block on every bot, can keep you out of ChatGPT search, Perplexity, Copilot and other AI answers. Here is how to let the search crawlers in and keep only the training crawlers out.
- You, the site owner
- about 15 min
The fix: Remove the robots.txt rules that block AI search and assistant crawlers, and block only the training crawlers you choose to.
Step by step
- Open yoursite.com/robots.txt and find the groups that name AI search or assistant crawlers (the AI crawler checker shows which are blocked), or a "User-agent: *" group with "Disallow: /".
- Delete the Disallow rules for the search crawlers (Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot, DuckAssistBot, Meta-WebIndexer, YouBot, Amzn-SearchBot, MistralAI-Index) and the assistant fetchers (ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, Amzn-User, MistralAI-User).
- If you want to opt out of AI training, keep separate groups for training crawlers only: GPTBot, ClaudeBot, Applebot-Extended, CCBot, Meta-ExternalAgent, MistralAI-Training and Amazonbot. Add Google-Extended only if you also mean to leave Gemini’s app answers.
- A crawler named in its own group ignores the "User-agent: *" group, so repeat any private-path Disallow lines inside the new groups.
- Check that a security plugin, firewall or CDN isn't also blocking these crawlers (the AI crawler checker tests that too).
- Allow a day or two for the crawlers to notice; OpenAI and Perplexity say about 24 hours, DuckDuckGo up to 72.
On Shopify
- Shopify builds robots.txt from a robots.txt.liquid template; add or edit it in Online Store → Themes → Edit code (Templates → Add a new template → robots.txt) and remove the rules for these crawlers.
- If you didn't add the rules yourself, an app may have; check apps that mention AI or bot blocking.
Why it matters
Some AI services send one crawler to find and quote pages for their answers and another to collect training data. A robots.txt that tells the search and assistant crawlers to stay away keeps your pages out of services such as Bing and Copilot, ChatGPT search, Claude, Perplexity, Siri and Spotlight, Meta AI, Alexa and DuckDuckGo’s AI answers, so they can’t recommend you when people ask about what you offer. Blocking AI training crawlers like GPTBot or ClaudeBot is a different, legitimate choice with no search cost; blocking the search crawlers is often an accident, from a rule meant for training bots or a blanket block on all bots.
For your developer
Each crawler obeys the most specific User-agent group that matches its token and ignores the * group when it has its own; a blanket Disallow: / under * blocks every crawler without a group of its own. robots.txt binds OAI-SearchBot, PerplexityBot, Claude-SearchBot, Claude-User, DuckAssistBot, Meta-WebIndexer, Applebot and YouBot (DuckAssistBot within 72 hours); for ChatGPT-User, Perplexity-User, Meta-ExternalFetcher, Google-Agent, Google-GeminiNotebook and Amzn-User it is advisory, so a firewall 403 to them is the real block. Applebot follows Googlebot's rules when robots.txt doesn't name it, and Claude's search draws on Brave, which won't crawl what Googlebot can't. A Googlebot block keeps a site out of Google’s results, AI answers included.
# AI search crawlers and user-requested fetchers: let them read the site
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Meta-WebIndexer
User-agent: DuckAssistBot
User-agent: YouBot
Allow: /
Disallow: /cart/
# Training only: a policy choice, with no AI-search penalty either way
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Applebot-Extended
Disallow: /
# Google-Extended also removes the site from Gemini app answers.
# Add it to the block above only if that is intended.