Sub topic 7
Checking indexability: canonicals, noindex and robots.txt
This chapter assumes you have run a first crawl and can read the Internal tab. It also assumes you know what a canonical tag, a meta robots tag and a robots.txt file are. You should only crawl sites you own or have permission to audit.
What indexability means in the SEO Spider
A URL is indexable if a search engine is allowed to put it in its index. The SEO Spider adds two columns to the Internal tab to show this:
- Indexability is either
IndexableorNon-Indexable. - Indexability Status gives the reason, such as
Canonicalised,Noindex,Redirected,Client ErrororBlocked by robots.txt.
These columns are the starting point for this chapter. Filter or sort by Indexability Status to see the cause. Fixing the cause is more useful than counting the affected URLs.
The Spider reports a URL as non-indexable when it sees a signal that normally keeps the page out of the index. It does not know what a search engine has actually indexed. For that you need the Search Console integration, covered in a later chapter.
The signals the Spider checks
| Signal | Where it lives | What the Spider reports |
|---|---|---|
| robots.txt Disallow | `/robots.txt` | URL is blocked and not fetched. Status Code shows `0`, Status shows `Blocked by Robots.txt`. |
| Meta robots `noindex` | `<meta name="robots">` in the HTML | Indexability Status `Noindex` |
| X-Robots-Tag `noindex` | HTTP response header | Indexability Status `Noindex` |
| Canonical to another URL | `<link rel="canonical">` or the `Link` header | Indexability Status `Canonicalised` |
| Non-200 response | HTTP status | `Redirected`, `Client Error` or `Server Error` |
The Spider reads the meta robots tag and the X-Robots-Tag header. Check the Directives tab for both, because a noindex sent only in a header is invisible when you view the page source.
Checking robots.txt
Blocked URLs are the most confusing case. The Spider does not request them by default, so you see only the URL and the fact that it was blocked. You learn nothing about the page content, titles or links.
- Open the Response Codes tab and apply the Blocked by Robots.txt filter.
- Check the Matched Robots.txt Line column. It shows which rule blocked each URL.
- Decide for each group whether the block is intended.
Common errors:
- A rule such as
Disallow: /left over from a staging site. - A rule like
Disallow: /productsthat blocks/products-sale/too, because Disallow matches by prefix. - Blocking CSS or JavaScript folders, which stops rendering.
The Spider's robots.txt handling is set under Configuration > Robots.txt. The default is to respect robots.txt. You can also choose to ignore it, or to ignore it but still report which URLs it would have blocked. The second option is useful on your own site. It lets you crawl everything while still seeing the effect of your rules.
The Custom robots.txt option lets you test a changed file before you publish it. Edit the rules in the Spider, re-crawl, and check the Blocked by Robots.txt filter. This is safer than editing the live file and waiting to see what happens.
A page blocked in robots.txt can still appear in search results if other sites link to it. Search engines cannot read a noindex on a page they cannot fetch. To remove a page from the index, allow crawling and use noindex. Do not block it.
Checking noindex and other directives
Open the Directives tab. Its filters include:
- Index and Noindex
- Follow and Nofollow
- None, which is
noindex, nofollowcombined - NoArchive, NoSnippet, Max-Snippet and similar
- Outside <head>, for robots tags placed where search engines may ignore them
Apply the Noindex filter and look at the list. Every noindexed URL should be there on purpose. Typical intended cases are internal search results, thank-you pages and filtered listings. Typical mistakes are product pages, category pages or whole sections that picked up a noindex from a template or a staging setting.
A noindex combined with nofollow also stops link equity flowing through that page. Check the Nofollow filter for pages that you want search engines to follow.
If the same page has conflicting directives, such as index in the HTML and noindex in the header, search engines usually apply the most restrictive one. Treat any conflict as a bug and remove one of the two.
Checking canonicals
Open the Canonicals tab. The filters worth knowing:
| Filter | Meaning | Usual action |
|---|---|---|
| Contains Canonical | The page declares a canonical. | None. This is the baseline. |
| Self Referencing | The canonical points to the page's own URL. | None. This is the recommended default. |
| Canonicalised | The canonical points to a different URL. | Check the target is correct and indexable. |
| Missing | No canonical found. | Add a self-referencing canonical where appropriate. |
| Multiple | More than one canonical was found. | Remove the extras. Search engines may ignore all of them. |
| Non-Indexable Canonical | The target is noindex, blocked, redirected or an error. | Fix the target or change the canonical. |
| Canonical Is Relative | The canonical uses a relative path. | Switch to absolute URLs to reduce errors. |
| Outside `<head>` | The tag is in the body. | Move it into the head. |
The most serious problem is a canonical that points at a URL that cannot be indexed. The page tells search engines to use another URL, and that URL refuses to be indexed. The result can be that neither version ranks.
Also look for canonical chains, where A points to B and B points to C. The Spider can report these under Reports > Canonicals > Canonical Chains. Point every page directly at the final URL.
A canonical is a hint, not an order. Search engines can ignore it when the two pages differ too much. The Spider tells you what you declared, not what the search engine decided.
Pagination and hreflang notes
Pagination URLs such as ?page=2 should normally be self-canonical and indexable, not canonicalised to page 1. Canonicalising every page of a series to the first page can hide the items on later pages. The Pagination tab lists what the Spider found, but modern search engines no longer use rel="next" and rel="prev" as indexing signals.
Hreflang is covered by its own tab. A common indexability link is that each hreflang target must be indexable and must link back. The Spider flags non-indexable alternatives.
A workflow for an indexability audit
Follow these steps after a crawl:
- In the Internal tab, filter to HTML and sort by Indexability Status.
- Export the
Non-Indexablerows and compare them with the list of pages you want in search. - Check the Blocked by Robots.txt, Noindex and Canonicalised groups separately.
- For each unexpected URL, open the lower Inlinks panel to see which pages link to it. Linking to non-indexable pages wastes crawl effort and usually signals a template problem.
- Fix the cause, then re-crawl only the affected section to confirm.
You can automate the first step. The export from the CLI chapter includes these columns, so a short script can list the pages that should be indexed but are not:
import csv
with open("/tmp/sf-crawl/internal_all.csv", newline="", encoding="utf-8-sig") as f:
for row in csv.DictReader(f):
if row["Content Type"].startswith("text/html") and row["Indexability"] == "Non-Indexable":
print(row["Indexability Status"], row["Address"])Column names can change between versions, so open the CSV header once before relying on a script.
Common errors
- Reading "Non-Indexable" as "broken". Redirects and 404s are non-indexable by design. Filter to status 200 first.
- Auditing a site that is blocked. If robots.txt blocks the whole site, the crawl returns one URL. Check the robots.txt setting before you assume the site is small.
- Forgetting that rendering changes the result. If JavaScript adds a noindex or changes the canonical after load, the raw HTML crawl and the rendered crawl disagree. Compare both when you see odd results.
- Trusting the Spider alone. It checks signals on your pages. It does not show the index. Use the URL Inspection tool in Search Console to confirm a specific URL.
Exercise
A crawl shows 40 product URLs with Indexability Status "Canonicalised". Each canonical points to a URL that appears under the Non-Indexable Canonical filter. What is wrong, and which two checks tell you the cause?
Show answer
The pages tell search engines to use another URL, but that URL cannot be indexed, so neither may appear in search. Open the canonical target in the Internal tab and read its Indexability Status. It may be noindex, blocked by robots.txt, redirected or an error. Then check the Inlinks panel or the Canonicals tab to see how the canonicals were generated. A template or plugin setting is the usual cause. Fix the target or point the canonical at an indexable URL.
Exercise
A page is disallowed in robots.txt and you want it removed from search results. Why does adding a noindex tag to the page not work, and what should you do?
Show answer
Search engines cannot fetch a blocked page, so they never see the noindex. Remove the Disallow rule so the page can be crawled, keep the noindex in place, and wait for the page to be recrawled and dropped. After it has left the index, you may block it again if you need to.