robots.txt.liquid edit
Shopify exposes a fully editable robots.txt.liquid template in your theme files. The default already contains Disallow: /cart and Disallow: /account, but critically, it does not disallow /search. To block Googlebot from crawling internal search results pages, you add a single line to the Googlebot section of robots.txt.liquid: Disallow: /search.
Access it under Online Store > Themes > Edit code > Layout > robots.txt.liquid. Remember: robots.txt prevents crawling but not indexing. If another website already links to /search?q=blue+jeans, Google may still index that URL from the link alone. That’s why this layer must be combined with the noindex meta tag approach below. See our guide on running a Shopify SEO audit for the full crawl-budget checklist.


























