Practical research from Northstar Select. Some related guides contain affiliate links; see our disclosure.
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 objective | First option to investigate | Important limitation |
|---|---|---|
| Keep a publicly accessible page out of Google Search | A noindex robots meta tag or X-Robots-Tag response header | Google must be able to fetch the URL and see the directive. |
| Reduce crawler requests for an area | An appropriate robots.txt rule | The URL can still appear without page content if Google learns of it elsewhere. |
| Restrict genuinely confidential information | Authentication and appropriate access controls | Neither robots.txt nor noindex is a security boundary. |
| Consolidate duplicate public URLs | Consistent canonical signals and, if the old URL should move, an appropriate redirect | A 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
- Record the exact URL, response status, current robots.txt rule, HTML robots metadata, and
X-Robots-Tagheader. Test the response that a crawler receives, not just the page rendered in your browser. - Decide whether the page should remain public and whether it should be indexed. Confirm ownership and dependencies before changing a shared site-wide rule.
- Make the smallest appropriate change. For a page meant to be indexed, investigate accidental
noindexor crawl blocks. For a public page meant to be excluded, make sure the crawler can discover thenoindexdirective. - 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.
- Recheck later. Removing an existing result is not instantaneous or guaranteed on a specific schedule.
Common mistakes
- Blocking a URL in robots.txt while expecting Google to read a
noindextag on that blocked page. - Applying
noindexto an entire template when only one URL should be excluded. - Using
noindexto choose between duplicates without examining canonical signals and redirects. - Publishing a private document and relying on search settings to protect it.
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.
