How to fix “Blocked by robots.txt” on Shopify
If Search Console shows “Blocked by robots.txt” on your Shopify site, you are in the right place. robots.txt stops Googlebot from fetching the URL. This page covers the causes and a step-by-step fix for Shopify. A hosted e-commerce platform. Sitemap and canonicals are automatic; the places to watch are password protection, theme code and duplicate collection URLs.
Contents
What does this status mean?
A Disallow rule in your robots.txt forbids crawling this URL. Google cannot read the content; if other sites link to it, it can still appear in the index without content.
Likely causes on Shopify
- A "Disallow: /" rule added during development was forgotten live.
- A broad pattern (for example /*?) also catches pages you want.
- The CMS or a plugin rewrote robots.txt on its own.
- Sitemap URLs sit in folders closed by robots.txt.
- Shopify note: Shopify lets you customise robots.txt through the robots.txt.liquid template. The defaults suit most stores; change the template only if you really need to.
Step-by-step fix on Shopify
- In your Shopify admin go to: Online Store > Preferences, Navigation > URL redirects and the theme code (theme.liquid).
- Shopify lets you customise robots.txt through the robots.txt.liquid template. The defaults suit most stores; change the template only if you really need to.
- Use the Search Console robots.txt report or a robots tester to find which rule closes the URL.
- Narrow or delete the rule; close only folders that really should not be crawled.
- Verify that sitemap URLs do not conflict with robots.txt.
- After fixing, give Google a day to refresh its robots.txt cache or request a recrawl in the report.
- Send the URL for indexing and follow progress with URL inspection.
Extra checks for Shopify
- noindex and visibility: Check that password protection is off under Online Store > Preferences; a conditional noindex tag in theme.liquid or an app may be adding noindex.
- canonical and duplicate URLs: Product pages also open under collection paths (/collections/x/products/y); Shopify canonicalises them to /products/y. Linking internally to /products/ directly sharpens the signal.
After fixing
In Search Console start "Validate fix" for this status and resubmit the page with URL inspection. First confirm the blocker is gone with the free Free indexability checker tool; for many URLs follow Bulk URL indexing: how to send thousands of pages to Google. Google makes the indexing decision itself and timing ranges from days to weeks.
More information
Frequently asked questions
Does robots.txt remove a page from the index?
No. It blocks crawling, it does not remove from the index. To remove, allow crawling and use noindex.
How do I test robots.txt?
Enter the file and a URL in our free robots.txt tester to see the Googlebot allow status.
Where are these settings on Shopify?
Online Store > Preferences, Navigation > URL redirects and the theme code (theme.liquid).