SEO WORKFLOW · PRACTICAL WORKFLOW

Robots.txt vs Noindex: Which One Keeps a Page Out of Google?

Illustrative search analysis workspace; not a product test result

Robots.txt controls whether compliant crawlers may request a URL. A noindex directive tells a supporting search engine not to include that page in its index. They are different controls. Blocking crawling alone is not a reliable way to remove a URL from Google Search, and a crawler generally must be able to fetch a page to see its noindex directive.

Choose the outcome before changing a setting

On narrow screens, scroll horizontally to see the full table.

Your objectiveFirst option to investigateImportant limitation
Keep a publicly accessible page out of Google SearchA noindex robots meta tag or X-Robots-Tag response headerGoogle must be able to fetch the URL and see the directive.
Reduce crawler requests for an areaAn appropriate robots.txt ruleThe URL can still appear without page content if Google learns of it elsewhere.
Restrict genuinely confidential informationAuthentication and appropriate access controlsNeither robots.txt nor noindex is a security boundary.
Consolidate duplicate public URLsConsistent canonical signals and, if the old URL should move, an appropriate redirectA canonical is a preference, not an instruction that guarantees Google's selection.

Google documents both noindex requirements and robots.txt behavior. It does not support placing noindex in robots.txt as an indexing control.

Example: a public campaign thank-you page

Suppose /thank-you/ is accessible after a form is submitted, but you do not want it indexed. The page could return a noindex directive while remaining crawlable. If an earlier robots.txt rule blocks the path, Google may not be able to read that directive until the rule is corrected and the page is recrawled. Do not remove other restrictions blindly: first determine whether the content should be publicly accessible at all.

If the page contains private customer information, use authentication or remove sensitive data. A hidden search result is not the same as a protected resource.

Test one URL before scaling

  1. Record the exact URL, response status, current robots.txt rule, HTML robots metadata, and X-Robots-Tag header. Test the response that a crawler receives, not just the page rendered in your browser.
  2. Decide whether the page should remain public and whether it should be indexed. Confirm ownership and dependencies before changing a shared site-wide rule.
  3. Make the smallest appropriate change. For a page meant to be indexed, investigate accidental noindex or crawl blocks. For a public page meant to be excluded, make sure the crawler can discover the noindex directive.
  4. Use Search Console’s URL Inspection to review the indexed state and, if appropriate, run a live test. A live test and Google’s stored index state answer different questions.
  5. Recheck later. Removing an existing result is not instantaneous or guaranteed on a specific schedule.

Common mistakes

For a separate diagnosis of submitted URLs, see Sitemap Submitted but Pages Not Indexed. For duplicate URLs versus moved pages, see Canonical URL vs Redirect.

Sources and scope

This is a documentation-based guide, not a live audit of your site. Review Google’s noindex guidance, robots.txt specification, and canonical guidance before changing production settings.