Neova高级 SEO 平台

X-Robots-Tag 与 meta robots 在 nofollow 上冲突

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

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

对同一个 URL,一处写着 follow,另一处写着 nofollow。Google 会采用限制更严格的规则,因此出链可能不会被跟随。如果一处是 nofollow 而另一处没有 follow 指令,则不标记。

您可以做什么

在两处设置相同的 follow 或 nofollow 值,或删除其中一处。

Neova 为何标记

  • robots 规则冲突时,Google 采用更严格的那个,所以该 URL 上的链接可能不会被跟踪。
  • HTTP 标头里是一个值、HTML 里是另一个值,通常说明其中一个是在别处设置的(例如服务器规则)并被遗忘了。
  • 如果此 URL 上的链接不被跟踪,只从这里链接的页面可能更慢才被发现。

来源

完整指南

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

What This Check Flags

This check fires when a page gives two different answers about nofollow: one value in the HTML <meta name="robots"> tag and a conflicting value in the X-Robots-Tag HTTP response header. It matters because search engines combine the two by taking the most restrictive instruction — so a stray nofollow in a header you forgot about can quietly kill link equity flow from a page you meant to have followed, and you'll never see it in the HTML.

Both the meta tag and the header are legitimate ways to deliver robots directives. The problem isn't having both — it's having them disagree, because then the source of truth depends on rules most people don't have memorized.

A Real Failing Example, and the Fix

Say your page's HTML looks intentional and permissive:

<!-- In the <head> -->
<meta name="robots" content="index, follow">

But the response header, set months ago in an Nginx/Apache config or a CDN rule and long forgotten, says otherwise. Check it with a HEAD request:

$ curl -sI https://example.com/resources/guide/

HTTP/2 200
content-type: text/html; charset=UTF-8
x-robots-tag: nofollow
cache-control: max-age=3600

The HTML says follow; the header says nofollow. Google resolves the conflict by combining directives and honoring the more restrictive one — so this page is treated as nofollow. Every link on it stops passing signals, and your <meta> tag was a red herring the whole time.

The fix is to make the two agree. If you actually want links followed, remove the header directive (or set it to match). At the server level:

# Apache (.htaccess) — REMOVE or correct a stale rule like this:
# Header set X-Robots-Tag "nofollow"

# Nginx — drop or fix the offending add_header line:
# add_header X-Robots-Tag "nofollow";

Then re-check with curl -sI until the header no longer contradicts the meta tag. If you genuinely want nofollow, pick one place to say it and make the other match — don't leave them fighting.

Which One Wins? The Rules, Plainly

Meta Robots (HTML) X-Robots-Tag (Header) What the Crawler Actually Does
follow nofollow nofollow — most restrictive wins
nofollow follow nofollow — most restrictive wins
index, follow (header absent) follow — nothing to conflict
(meta absent) nofollow nofollow — header applies
noindex nofollow noindex + nofollow — directives combine, not override

Two things people get wrong here. First, it is not "the header always beats the meta tag" — Google combines both and takes the strictest. A permissive header does not rescue a restrictive meta tag, or vice versa. Second, directives stack: a noindex from one source and a nofollow from the other give you a page that's both, even though neither source said both.

One thing that genuinely does override: a directive only counts if the crawler can read it. If robots.txt blocks the URL, the crawler never fetches the page, never sees the header or the meta tag, and the directive is ignored entirely. Don't block a page you're trying to give robots instructions to.

How to Detect It

  1. curl -sI <url> — read the raw x-robots-tag header, then view source for <meta name="robots">. If they disagree, you've reproduced it in two commands.
  2. Chrome DevTools → Network tab — click the document request and read Response Headers for X-Robots-Tag alongside the rendered meta tag in Elements.
  3. Screaming Frog — it reports both the meta robots value and the X-Robots-Tag per URL in the Directives tab, so mismatches across a whole site jump out.
  4. Google Search Console URL Inspection — shows how Google actually resolved the directives for a live URL, which is the final word on which value won.

How to Fix It

  1. Decide the intended state for the page: follow or nofollow. There's no fix without knowing what you meant.
  2. Find the source of the wrong value. Header directives live in server config (.htaccess, Nginx add_header), a CDN/edge rule, or an app-level middleware. Meta directives come from the template, an SEO plugin, or a theme setting.
  3. Make one source authoritative. Pick the meta tag or the header for robots directives and set the other to match — ideally, don't emit both for the same directive at all.
  4. Watch for wildcard config. A blanket X-Robots-Tag: nofollow applied to a whole directory or file type is the classic cause — scope it, or remove it.
  5. Re-verify with curl -sI and re-inspect in Search Console until both agree.

FAQ

Does X-Robots-Tag Always Override the Meta Robots Tag?

No — that's the myth this whole check exists to correct. Google reads both and applies the most restrictive combination. A followed header will not undo a nofollow meta tag; the page ends up nofollow either way. Treat them as additive, not as a priority order.

Is a nofollow Mismatch as Serious as a noindex One?

nofollow is usually less catastrophic than a rogue noindex — it doesn't drop the page from the index, it stops the page from passing signals through its links. But on a hub, category, or resource page whose job is to distribute link equity, an accidental sitewide nofollow is a real, quiet drain. Fix it with the same urgency.

Where Does nofollow in the Header Even Come From If It's Not in My HTML?

Almost always a server or CDN rule someone added for a specific reason (staging, a file type, a legacy directory) that grew too broad or outlived its purpose. Search your .htaccess, Nginx configs, and edge/CDN rules for X-Robots-Tag. It's rarely the CMS.

Should I Just Delete Both and Let the Page Default?

If you want the page indexed and its links followed, yes — the default when no robots directive is present is exactly index, follow. Emitting explicit directives only creates surface area for them to disagree. Say nothing unless you mean to restrict something.

  • Robots Meta Tag vs X-Robots-Tag HTTP Header: When to Use Each — the full picture on choosing between the two.
  • Meta Robots and X-Robots-Tag: The Complete Reference — every value and how they combine.
  • Noindex and Nofollow Together — when both directives on one page are right, and when they hurt.
  • Meta Robots Outside Head — a meta directive placed outside the head; Google says it still respects it, but the head remains the safe place for it.

在您自己的网站上找到它

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

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

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

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

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