Shopify
Shopify robots.txt: Inspect Default Rules Before Editing
Test three paths against a real Shopify storefront’s robots.txt. See which crawler group applies, when to edit the theme and how to return to Shopify’s defaults.
On this page
Open /robots.txt on the store’s primary domain before editing a Shopify theme. Pick one crawler and one URL whose behavior you want to change. If the current file already lets that crawler reach the product, editing the template will not solve a missing product listing. Shopify generates a robots.txt file automatically and recommends its defaults for most stores. Shopify’s robots.txt guide
Read the rule for a particular URL
On December 2 we retrieved the public robots.txt from Shopify Supply. It contained separate groups for the wildcard user agent and Google AdsBot. We tested three example paths against that file without requesting the paths from the shop. This is a snapshot of one storefront’s published rules. Your own domain is the right source for a decision about your store. Shopify Supply’s public robots.txt
| Example path | Googlebot | Why |
|---|---|---|
/cart |
Blocked | The wildcard group disallows this path |
/products/trail-map |
Allowed | No disallow rule in the applicable group matches this example |
/buy/print |
Blocked | The wildcard group disallows paths starting with /buy/ |

The /buy/print example was allowed in our second check using the named AdsBot group. That group listed cart, checkout and search exclusions, while the buy-path rule appeared only in the wildcard group. Reading the entire file as one long list would give the wrong answer for that crawler. The product path was also a test string. An “allowed” result says nothing about whether a product exists, can be purchased or appears in search.
Find out whether the theme owns the difference
Save the live file before opening the theme editor. In Online Store → Themes, identify the published theme and inspect its code for templates/robots.txt.liquid. A store without that template can still serve a valid robots.txt because Shopify provides the default output.
There is a wrinkle when comparing an older theme with a new store. Shopify documents that a theme template rendering default rule groups can still include older exclusions, including search and policy paths, that the current platform default has dropped. The presence of /search in a public file tells you what that store serves. Establishing how it got there requires checking the theme.
Make a change you can test and reverse
Write down a pair of URLs before changing a rule. For a filter problem, use the exact unwanted combination and a neighboring collection or product that should stay crawlable. Keep a copy of the original template. Use Shopify’s supported Liquid objects to make a targeted change and preserve the other groups and the sitemap declaration. Pasting a static copy of today’s output makes future platform changes harder to inherit. Shopify’s developer guide
After deployment, fetch the public file again. Test both URLs with the same crawler identity and compare the sitemap line with the original. To undo your edit, restore the saved template. If the intention is to return fully to Shopify’s generated default, first preserve any intentional custom rules, then remove the custom template and verify the resulting live file.
If the original complaint was “indexed, though blocked,” separate that from permission to crawl. A known URL can appear in search even when a crawler cannot fetch it. For a product that should appear, check its canonical address, public availability and sitemap entry as well. Shopify sitemap and indexing checks · Robots.txt rule matching
