Neova高级 SEO 平台

canonical 指向被 robots.txt 禁止抓取的 URL

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月7日

搜索引擎无法抓取被 robots.txt 屏蔽的目标,因此无法读取 canonical 所首选的 URL。canonical 与屏蔽规则发出了相互矛盾的信号。

您可以做什么

让 canonical 指向可抓取的 URL,或删除屏蔽该目标的 Disallow 规则。

Neova 为何标记

  • 搜索引擎无法抓取被 robots.txt 屏蔽的目标,因此读不到 canonical 所指定的首选 URL。
  • canonical 说要索引目标,屏蔽规则却说不要抓取它,信号相互冲突。
  • Google 于是可能忽略这个 canonical,另选一个 URL。

来源

完整指南

这一部分目前只有英文版。

This check fires when a page's rel="canonical" points at a URL that is blocked by robots.txt. The target might return a perfectly healthy 200 — but Google is not allowed to fetch it, so it can never verify the canonical relationship, and an unverifiable canonical is a canonical Google is free to overrule.

What This Check Flags and Why It Bites

Every other failure in this cluster is "Google fetched the target and it was broken." This one is different: Google never gets to look. A robots.txt Disallow stops the crawl before the canonical can be confirmed, so Google treats your declared canonical as a weak, unverified hint and often canonicalizes onto a different URL it can crawl — frequently the page you were trying to point away from.

A Real Failing Example

Filtered category page /shop/shoes/?color=red tries to consolidate onto the clean canonical:

<link rel="canonical" href="https://example.com/shop/shoes/" />

Sensible — except the site's robots.txt blocks the entire /shop/ tree to save crawl budget:

$ curl -s -A 'Mozilla/5.0' https://example.com/robots.txt

User-agent: *
Disallow: /shop/

The canonical target itself is fine when you fetch it directly:

$ curl -sI -A 'Mozilla/5.0' https://example.com/shop/shoes/

HTTP/2 200
content-type: text/html; charset=utf-8

But Googlebot obeys the Disallow and never requests it. It sees a canonical pointing into a black box, cannot confirm the two pages are duplicates, and picks its own canonical — possibly the parameterized URL you never wanted indexed.

The fix is to unblock the canonical target so Google can crawl and verify it:

User-agent: *
Disallow: /shop/*?color=
Allow: /shop/shoes/

Blocked Target vs. Other Canonical Failures

Failure Can Google Fetch the Target? What Google Does
Disallowed (this check) No — robots.txt blocks it Cannot verify; treats canonical as unconfirmed and may overrule
404 target Yes — and it is empty Discards the canonical outright
5xx target Attempts, gets an error Defers the decision and retries
Redirecting target Yes — follows the hop Uses the endpoint as canonical
Noindex target Yes — reads a contradictory directive Resolves the conflict, usually against you

The distinction that matters: robots.txt controls crawling, not indexing. Blocking the target does not remove it from the index — it just blinds Google to the signal you were trying to send.

This failure is especially insidious on large e-commerce and faceted-navigation sites, where a broad Disallow is added to protect crawl budget from parameter explosion. The rule does its job on the junk URLs, but if the clean canonical master happens to live under the same path prefix, it gets caught in the same net. Nobody notices because the pages still render for humans and still resolve for direct curl — the only symptom is Google quietly choosing its own canonicals and the "clean" URLs never accumulating the authority you routed to them. The bigger the site, the longer this hides in plain sight.

How to Detect It

  1. Screaming Frog: configure it to respect robots.txt, crawl, then open Response Codes > Blocked by Robots.txt and cross-reference the Canonicals tab. Any canonical target sitting in the blocked list is this error. The Canonicals > Canonical Links to Non-Indexable URL filter also surfaces it.
  2. GSC robots.txt Tester & URL Inspection: inspect the affected page — if the declared canonical is blocked, Inspection shows "Crawl allowed? No: blocked by robots.txt" for the target. The URL Inspection tool confirms crawlability per URL.
  3. curl the robots.txt directly: fetch /robots.txt and grep for the path prefix of your canonical target. If a Disallow rule matches it, Googlebot will not crawl it.

How to Fix It

  1. Identify the canonical target and confirm which robots.txt rule blocks it (watch for wildcard and precedence quirks).
  2. Decide the intent: if that URL is the true master, it must be crawlable — remove or narrow the Disallow so Google can reach it.
  3. Prefer surgical rules: block only the parameter variants (Disallow: /shop/*?color=) rather than the whole directory that contains your canonical.
  4. If you genuinely need the target out of the index, do not block it — let it stay crawlable and add a noindex instead (but never as a canonical target — that is a different error).
  5. Re-fetch /robots.txt, confirm the target is now allowed, and validate in GSC.

FAQ

The Blocked Target Returns 200 — Why Is This Even a Problem?

Because Google never fetches it. A canonical it cannot crawl is a canonical it cannot verify, so it downgrades your hint and may consolidate onto a crawlable URL you did not choose.

Does robots.txt-blocking the Target Remove It From Google's Index?

No. Blocking controls crawling, not indexing — a blocked URL can still be indexed from links. To keep a page out of the index you need noindex on a crawlable page, not a Disallow.

Should I Just Remove the Canonical Instead of Unblocking the Target?

Only if the current page should stand on its own — then self-canonicalize. If the two pages really are duplicates, the master has to be crawlable; unblock it.

My robots.txt Has Wildcards — How Do I Know Which Rule Is Matching?

Precedence and wildcard behavior trip people up constantly. Test the exact target URL against your rules; the Complete robots.txt Reference covers precedence, wildcards, and real-world edge cases.

This is the "cannot verify" case; the rest of the cluster are "verified and broken": Canonical Points to a 404, Canonical Points to a 5xx Error URL, Canonical Points to a Noindex URL, and the AMP-specific variant AMP Canonical Points to Disallowed URL. Also worth a look: Disallowed Image for the same robots.txt trap on assets.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部可索引性检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库