How do I allow or block AI crawlers on a Shopify store?
The short answer
On Shopify you change robots.txt by adding a robots.txt.liquid template to your theme and editing the rules there, which Shopify documents in its help center. You can add a group for a specific AI crawler, such as GPTBot, to block it, but blocking OAI-SearchBot keeps your store out of ChatGPT search answers, so most stores that want AI visibility leave the search crawlers allowed.
How robots.txt works on Shopify
Every Shopify store has a robots.txt file generated by Shopify. You can't upload your own file to the root of the store, but you can override the default by creating a robots.txt.liquid template in your theme code. Shopify's help center documents this, along with a warning that mistakes in the file can hurt your traffic, so it is worth having someone comfortable with code make the change.
The usual approach is to keep Shopify's default rules (the template outputs them for you) and add your own groups underneath. A group for one crawler looks like this:
User-agent: GPTBot Disallow: /
Because the file lives in the theme, it can change when you switch or republish a theme. Check yourstore.com/robots.txt after any theme change.
Which AI crawlers to allow
OpenAI runs separate crawlers for separate jobs, and treating them the same is the most common mistake:
- OAI-SearchBot finds pages for ChatGPT search. Blocking it keeps your store out of ChatGPT search answers.
- GPTBot gathers content OpenAI may use to train its models. Blocking it does not, according to OpenAI, remove you from search answers.
- ChatGPT-User visits a page when a user's request leads ChatGPT there. OpenAI says robots.txt rules may not apply to it, because those visits are started by users.
Other AI companies have their own crawlers, such as PerplexityBot and ClaudeBot. For a store that wants its products named in AI answers, the sensible default is to allow the search crawlers and decide on training crawlers separately. The trade-offs are covered in which AI crawlers to allow and the difference between GPTBot and OAI-SearchBot.
Things robots.txt won't do on Shopify
Robots.txt is a request, not a lock. Well-known crawlers say they follow it, but it doesn't stop a determined scraper. It also won't remove information AI tools already hold about your products, and it doesn't control what other sites, such as marketplaces or review sites, say about them.
If you never touched robots.txt and want to know where you stand, start with whether Shopify's default file blocks GPTBot.