Use robots.txt for crawl policy, noindex for indexing exclusion and canonical signals for duplicate preferences. Protect private material with access controls.
Start with the intended outcome
| Goal | Control to investigate | What it does not establish |
|---|---|---|
| Limit crawling of a URL pattern | robots.txt for the intended crawler | Removal of every known URL from an index. |
| Keep an accessible page out of Google’s index | A readable noindex directive | Confidentiality or an immediate removal deadline. |
| Prefer one URL among duplicate or very similar pages | Consistent canonical signals | Guaranteed selection or a language translation relationship. |
| Keep a customer document private | Authentication and authorization | Security merely because a crawler was asked not to visit. |
This matrix is a starting point for investigation, not a universal deployment recipe. First identify the exact URL, intended audience and search system. A policy meant for an archive or filter should not accidentally cover the article you want readers to find.
Save the current HTTP response, relevant HTML and observed indexing status before making a change. Then write a testable statement such as “this public confirmation page should remain accessible to visitors but excluded from Google’s index.” That is more useful than “improve robots.”
robots.txt: a request about crawling
Robots rules tell compliant crawlers which paths they may fetch. They do not authenticate visitors and are publicly readable. A URL that Google knows from links may still appear without its content being crawled. Google’s robots introduction describes these limitations.
Illustrative case: a publisher wants to reduce crawling of an unhelpful filter pattern while leaving articles available. List example URLs that should be allowed and disallowed, identify the relevant crawler, and test the pasted rules in the Robots.txt Tester. The tool cannot inspect a live firewall or prove search removal.
For selected groups, wildcards and matching lines, use our reproducible robots tutorial. The decision here comes before rule syntax: is crawl restriction actually the outcome you need? If the content is sensitive, move to real access protection instead of publishing its location in a robots file.
noindex: an indexing instruction the crawler must see
For an HTML page that should be accessible but excluded from Google’s index, a relevant directive can be placed in the head:
<meta name="robots" content="noindex">An HTTP response header is another method, including for non-HTML resources:
X-Robots-Tag: noindexThese are escaped examples in the article body; they are not instructions applied to this guide. Google needs to fetch the URL to see a noindex directive. If robots.txt blocks that fetch, the crawler may never read it. Review the noindex requirements.
Illustrative case: a public event-confirmation page should not be a search landing page. Confirm that the page can be fetched, inspect the actual meta or response header, and record the deployment. Check processing later through the relevant official report. Do not interpret a successful release as instant removal, or apply a blanket noindex header to the entire site.
canonical: a preference among similar URLs
A canonical declaration names the preferred representative of duplicate or substantially similar content. It is a signal, not a command that guarantees which URL Google selects. Redirects, canonical annotations and sitemap inclusion can support that preference when used consistently. See Google’s canonicalization guidance.
Illustrative case: an article is reachable through its clean URL and a campaign URL. Compare their bodies and intended behavior, then align canonical declarations, internal links and sitemap entries with the chosen address. If a duplicate is no longer needed, investigate an appropriate redirect. Do not invent a canonical target that answers a different question.
English and Chinese editions are another relationship. Our complete translations normally have self-canonicals plus reciprocal language annotations; the Chinese page does not become an English duplicate simply because English is primary. Use the worked hreflang example and map builder to review that language pair.
Review combinations as a system
| Configuration | Problem to investigate | Useful next check |
|---|---|---|
| Disallow plus noindex on the blocked page | The crawler may be unable to read the indexing instruction. | Fetch accessibility and the intended removal workflow. |
| A duplicate points to A while internal links prefer B | Preference signals are inconsistent. | The duplicate set, live heads and linking template. |
| A private file is merely disallowed | Anyone with access to the URL may still retrieve it. | Authentication, authorization and cache behavior. |
| Chinese canonical points to English, with language alternates | Different relationships have been conflated. | Both complete editions and their self-canonicals. |
There is no need to stack every available directive on every URL. A change should explain one intended behavior and how it interacts with the current template. If two teams own hosting headers and HTML, inspect the combined response before concluding that either configuration is correct.
Verify the change, then the processing
- Record the exact URL and desired behavior in a short change note.
- Capture the current response, directives and relevant official inspection result.
- Make the narrow change; review sibling pages that share its template.
- After publication, fetch the final URL and inspect the response actually delivered.
- Record crawler processing and indexing as later, separate observations.
Use the indexing diagnostic checklist when the symptom is an absent page. Use the Content Brief Builder to explain the reader decision and unresolved evidence before drafting a technical guide. Neither tool changes a remote website or replaces the provider’s inspection report.
A small, dated log makes the result auditable: policy chosen, change live, processing observed, desired indexing state confirmed or unknown. Keep unknowns visible instead of treating every successful HTTP request as proof of search inclusion or exclusion.
Follow the evidence.
- Google Crawling Infrastructure · Introduction to robots.txt ↗
- Google Search Central · Block indexing with noindex ↗
- Google Search Central · Canonical URLs ↗
- Google Search Central · Localized versions ↗
References checked Oct 16, 2026. Examples and workflow recommendations are editorial illustrations, not measured results. Provider guidance may change. Our editorial standards.