Sub topic 6
Reading noindex and robots.txt reasons
This chapter assumes you have a verified Search Console property and can open the Page indexing report. It also assumes you know what robots.txt is and can view a page's HTML source. Two reasons in the "Not indexed" table look alike but have different causes: Excluded by 'noindex' tag and Blocked by robots.txt.
Two different controls
Crawling and indexing are separate steps. robots.txt controls whether Googlebot may fetch a URL. A noindex rule controls whether a fetched page may be stored in the index. Each reason in the report points to one of these controls.
| Reason in the report | Control | What Google did |
|---|---|---|
| Excluded by 'noindex' tag | Robots meta tag or X-Robots-Tag header | Fetched the page, read noindex, left it out |
| Blocked by robots.txt | Disallow rule in robots.txt | Did not fetch the page |
Excluded by 'noindex' tag
This reason means Google fetched the page and found a noindex instruction. For HTML pages, the instruction is usually a robots meta tag in the head:
<meta name="robots" content="noindex">For files that have no HTML head, such as PDFs, the same instruction can be sent as an HTTP response header. Search Console reports it with the same reason:
HTTP/1.1 200 OK
Content-Type: application/pdf
X-Robots-Tag: noindexThis is often correct. Internal search results, thank-you pages and admin pages are good candidates for noindex. The question to ask is whether you meant to exclude each listed URL. Open the example URLs and look for pages that should rank. A noindex tag left over from a staging site or added by a template or plugin is a common cause.
Blocked by robots.txt
This reason means a Disallow rule stopped Google from crawling the URL. A rule like this blocks everything under /search/:
User-agent: *
Disallow: /search/Blocking crawling does not reliably keep a URL out of Google. A blocked URL can still be indexed without its content if other pages link to it. Such a URL usually shows a bare title and no description in search results. In the report, it may appear under a different status, such as "Indexed, though blocked by robots.txt".
The interaction that causes mistakes
The most common error is combining the two controls on the same URL. Suppose you add noindex to pages under /search/ and also disallow /search/ in robots.txt. Google cannot fetch those pages, so it never sees the noindex tag. The pages stay blocked and may still appear in the index as bare URLs.
Diagnosing a listed URL
- Open the reason and select an example URL.
- Run the URL Inspection tool on it. Check "Crawl allowed?" and "Indexing allowed?".
- View the page source and search for
name="robots". Also check the response headers forX-Robots-Tag. - Open
/robots.txtand look for a Disallow rule that matches the path. - Decide whether the exclusion is intended.
| Finding | Intended? | Action |
|---|---|---|
| noindex on a thin utility page | Yes | None |
| noindex on a product or article page | No | Remove the tag or header, then request validation |
| Disallow on a low-value path | Usually | None |
| Disallow on a path you want indexed | No | Edit robots.txt, then request validation |
| noindex plus Disallow on one path | Conflict | Remove the Disallow so Google can see the noindex |
Exercise
A page under /private/ has a noindex meta tag. The robots.txt file also has "Disallow: /private/". The page shows as Blocked by robots.txt. Why has the noindex tag had no effect, and what should you change if you want the page out of the index?
Show answer
Google cannot crawl the page, so it never reads the noindex tag. Remove the Disallow rule so Google can fetch the page and see the noindex. After the page leaves the index, you can add the Disallow rule back if you want.
Exercise
Search Console lists a PDF as Excluded by 'noindex' tag, but the PDF has no HTML. Where is the noindex coming from?
Show answer
It comes from an X-Robots-Tag: noindex HTTP response header sent by the server for that file.