## Problem
Google's John Mueller and Martin Splitt recently warned that indexable internal search result pages can become a site quality issue — and in some cases Google may flag them as **hacked content** in Search Console.
## Cause
When a store's search box generates indexable URLs (e.g. `/search?q=keyword`), spammers can exploit this by generating thousands of pages containing spam keywords, phone numbers, or pharmaceutical terms — all pointing to your domain. Mueller described it as a "vector for other people to spam" your site. On top of that, search result pages can create an **infinite crawl space** — especially when "did you mean" suggestions keep generating new URLs — which wastes crawl budget and increases server load.
## Solution
**The good news for Shopify stores:** Shopify's default robots.txt already includes `Disallow: /search` which blocks Google from crawling your internal search pages. Most stores are protected out of the box.
**What you should check:**
1. Visit `yourdomain.com/robots.txt` and confirm `Disallow: /search` is present
2. If you have a custom `templates/robots.txt.liquid` file in your theme, make sure you haven't accidentally removed that rule
3. If you use a third-party search app, check what URL pattern it generates — it may use a different path not covered by the default rule
**If you need to add or fix a robots.txt rule**, ShopMCP can do it directly via the theme file tools — just ask it to create or edit `templates/robots.txt.liquid`.
**Recommended robots.txt rule to block search pages:**
```
User-agent: *
Disallow: /search
```
Mueller and Splitt also noted that `robots.txt` is the cleanest and most effective solution — cleaner than a noindex meta tag — because it prevents crawling entirely rather than just indexing, which also protects crawl budget and reduces server load.
Source: [Search Engine Journal — Google May Treat Search Box Pages As A Site Quality Issue]([url])
## Tools
`shopify_create_asset`, `shopify_update_asset`, `shopify_patch_asset`