On this page
What this issue is
Your site search box turns whatever a visitor types into a URL, such as /?s=red+shoes on WordPress or /search?q=red+shoes on Shopify. If those pages return 200 status, have no noindex tag and are linked or reachable by crawlers, search engines can crawl them and add them to the index.
Why it costs you leads or sales
Search result pages are thin and duplicate. They can compete with your real category or service pages, dilute which URL Google picks to rank, and use up crawl time that should go to pages that earn money. The impact is usually medium, not dramatic, but it grows with site size.
There is also a spam risk. Attackers sometimes link to your search URLs with junk or adult phrases so those pages appear under your domain. Visitors who land on an empty or odd results page rarely convert.
- Visitor or bot searches/?s=any+phrase creates a URL
- Results page returns 200No noindex, no block
- Google crawls and indexesThin duplicate pages in the index
- Crawl time dilutedLess attention on money pages
The break is the point where result pages are allowed into the index.
Example: a small shop with 300 real pages but thousands of indexed search URLs. Numbers are illustrative.
How to check if your site has it
Find your search URL pattern
Search for any word on your site and look at the address bar. Note the pattern, for example ?s= or /search?q=.
Search Google for them
Type site:yourdomain.com inurl:?s= (or inurl:search?q=) into Google. Any results mean search pages are indexed.
Check Search Console
In Google Search Console open Pages (Indexing) and look at the lists of indexed and excluded URLs. Filter by the search pattern.
Inspect one results URL
Use URL Inspection on a results page. Check whether it is indexable and whether a noindex tag is detected.
View the page source
Open a results page, view source and look for <meta name="robots" content="noindex">. No tag and no X-Robots-Tag header means it is indexable.
How to fix it
Use your SEO plugin
Yoast SEO, Rank Math and similar plugins have a setting to noindex internal search results (look under Search Appearance or Titles & Meta). Turn it on and save.
Or add a small snippet
Add the PHP snippet below to a child theme's functions.php or a code snippets plugin.
Edit theme.liquid
In Online Store > Themes > Edit code, open layout/theme.liquid. Add the Liquid snippet below inside <head>.
Save and test
Run a search on the storefront and view source to confirm the tag appears only on the search template.
Open the Search Results page
In Pages, open the Search Results page settings.
Exclude from search
Turn on the option to exclude the page from search engines (sitemap and noindex), then publish.
Check the site search page
In the Wix editor, open the Site Search results page, then SEO settings, and switch off search engine indexing for that page if the option is shown. Wix controls some of this itself, so verify in the page source.
Check search URL behaviour
Squarespace search lives at /search?q=. Squarespace adds noindex to its search page by default in most cases. Confirm in page source, and if it is missing, contact Squarespace support or use code injection carefully.
Send a noindex signal
Output a robots meta tag or send an X-Robots-Tag: noindex header on every search results response. Keep returning 200 and keep links followable.
Block crawling later
After the pages drop out, add a Disallow rule to robots.txt for the search path.
add_action( 'wp_head', function () {
if ( is_search() ) {
echo '<meta name="robots" content="noindex, follow">' . "\n";
}
}, 1 );{% if template contains 'search' %}
<meta name="robots" content="noindex, follow">
{% endif %}User-agent: *
Disallow: /?s=
Disallow: /search
Disallow: /*?q=How to confirm it's fixed
- View source on a results page and see the noindex tag (or X-Robots-Tag header).
- URL Inspection shows 'Excluded by noindex tag' for a results URL.
- site:yourdomain.com inurl:?s= returns fewer results over the following weeks.
- Search Console Pages report shows search URLs under 'Excluded by noindex tag', then declining.
- After they drop, robots.txt tester or URL Inspection shows the search path is blocked.
- Normal pages, including those with 'search' in the name, are still indexable.
How to prevent it happening again
- Keep the noindex rule in the theme or plugin, and re-test after theme changes or migrations.
- Do not link to search result URLs from menus, footers or content.
- Check the Pages report in Search Console monthly for new search URL patterns.
- Re-test after you change SEO plugins, because settings can reset.
- Consider rate limits or a CAPTCHA on the search form if bots hammer it, without blocking legitimate search crawlers.
How FunnelGuard handles this
FunnelGuard does not check for indexable internal search pages today. It is a possible future check. FunnelGuard is built to run your customer journeys, such as lead forms, checkouts and booking buttons, and to verify tracking hits and test-lead delivery.
Nearby, it will show you if a journey breaks after a theme or plugin change, which is often when SEO settings get reset too. To watch for search page indexing, use Search Console's Pages report, a monthly site: query, and a crawler such as Screaming Frog. You can also run the free read-only FunnelGuard website audit, but it does not replace these checks for this issue.
Questions people ask
Should internal search pages be indexed by Google?
Usually no. They are thin, duplicate and nearly unlimited in number. Your category, product and service pages are better landing pages for search visitors.
Should I use noindex or robots.txt to stop search pages being indexed?
Use noindex first, because Google must crawl a page to see the tag. Once the URLs have dropped out of the index, you can add a robots.txt Disallow to save crawl time. Blocking first can leave already-indexed URLs stuck in the index.
How do I find out if my site search pages are indexed?
Search Google for site:yourdomain.com inurl:?s= or the pattern your site uses, such as inurl:search?q=. You can also check the Pages report in Google Search Console and filter by that URL pattern.
How do I noindex WordPress search results?
Turn on the noindex setting for internal search results in your SEO plugin, such as Yoast SEO or Rank Math. Alternatively, add a wp_head snippet that outputs a robots noindex meta tag when is_search() is true.
Why are my search result URLs showing up in Google?
They are probably returning 200 with no noindex tag, and Google found them through links, sitemaps or spam links pointing at your search URLs. Add noindex and make sure you do not link to them.
Can indexed internal search pages hurt my SEO?
They can waste crawl time, create duplicate content that competes with real pages and be abused for spam. The harm is usually moderate, but it grows on large sites.
How long does it take for search pages to drop out of Google?
It depends on how often Google recrawls those URLs. It can take weeks or months for a large number of pages. Watch the Pages report in Search Console to track progress.
Related issues
- SEO-017Crawl traps: infinite calendars, session IDs, endless parameter combinationsFix guide
- SEO-018Faceted navigation creates millions of crawlable filter URLsFix guide
- SEO-020Cart, checkout, account URLs crawlable and wasting crawl budgetFix guide
- SEO-006robots.txt syntax errors or unsupported directives (noindex in robots.txt)Fix guide
- SEO-002robots.txt blocks a money page or landing page directoryFix guide
- SEO-024Crawl budget wasted on redirecting or 404 URLs in internal linksFix guide