---
title: "Nofollow in HTML and HTTP header"
description: "A page sets nofollow twice: in its robots meta tag and in an X-Robots-Tag header. Why it happens, how the rules combine, and how to fix it."
url: https://ursy.com/wiki/nofollow-in-html-and-http-header/
updated: 2026-11-25T01:34:16+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/nofollow-in-html-and-http-header/
---

# Nofollow in HTML and HTTP header

> A page sets nofollow twice: in its robots meta tag and in an X-Robots-Tag header. Why it happens, how the rules combine, and how to fix it.

**Nofollow in [HTML](https://ursy.com/wiki/html/) and [HTTP](https://ursy.com/wiki/http/) header is a crawl issue where one [URL](https://ursy.com/wiki/url/) tells crawlers not to follow its links twice: once in the robots [meta tag](https://ursy.com/wiki/meta-tag/) inside the page and once in an X-Robots-Tag line the server sends with it.** The two copies work together, so the page is treated as nofollow either way. The risk is that you fix one copy, forget the other, and the links stay switched off.

## What does this issue mean? {#what-does-this-issue-mean}

There are two places a page-level [nofollow](https://ursy.com/wiki/nofollow/) rule can live. The first is the [meta robots tag](https://ursy.com/wiki/meta-robots-tag/) in the [HTML head](https://ursy.com/wiki/html-head/):

```
<meta name="robots" content="nofollow">
```

The second is the [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/), part of the [HTTP headers](https://ursy.com/wiki/http-headers/) that arrive before the page body:

```
X-Robots-Tag: nofollow
```

A site crawler flags this issue when it finds both on one address. It is not an error in the rule itself. It is a warning that the setting is managed in two places, often by two different people or systems.

[Google](https://ursy.com/wiki/google/)’s [robots rules page](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) defines page-level nofollow simply as: do not follow the links on this page. That covers every link on the page, unlike the `rel="nofollow"` attribute, which you add to one link at a time.

## Why does it matter for search? {#why-does-it-matter-for-search}

Links are how crawlers find pages and how value flows round a site. A page with nofollow passes no [link equity](https://ursy.com/wiki/link-equity/) through its links in the normal way, and the pages it points to may be found more slowly. If the page is a category, a menu hub or a blog index, that can starve the pages below it and leave some as [orphan pages](https://ursy.com/wiki/orphan-page/).

The double setting makes the problem stick. Say a developer removes the meta tag in the theme. The crawl report still shows nofollow, because the server rule is still there. People then lose time looking in the wrong place.

Google treats link-level nofollow as a hint. Its [2019 post on evolving nofollow](https://developers.google.com/search/blog/2019/09/evolving-nofollow-new-ways-to-identify) said it became a ranking hint at once, and that [crawling and indexing](https://ursy.com/wiki/crawling-and-indexing/) would follow on 1 March 2020. The same post says not to rely on nofollow to keep a page out of the index. For that, use [noindex](https://ursy.com/wiki/noindex/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI search](https://ursy.com/wiki/ai-search/) tools use crawlers too. If an [AI crawler](https://ursy.com/wiki/ai-crawler/) reads robots rules the way [search engines](https://ursy.com/wiki/search-engine/) do, a nofollow hub hides the paths to your deeper pages. That can mean fewer pages fetched and fewer chances to be quoted. We do not have a published statement from each AI company on page-level nofollow, so treat this as a reason for clean settings, not a proven effect. Our [bot directory](https://ursy.com/bots/) lists what each crawler says it does.

## How do the two copies combine? {#how-do-the-two-copies-combine}

Both Google and MDN say the rules add up. Google states that when robots rules conflict, the more restrictive one applies. MDN’s [X-Robots-Tag reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Robots-Tag) says the same for a clash between the header and the meta tag.

| In the HTML | In the header | Result for Google |
| --- | --- | --- |
| nofollow | nofollow | nofollow (this issue) |
| nothing | nofollow | nofollow |
| follow | nofollow | nofollow: the stricter rule wins |
| nofollow | nothing | nofollow |

MDN adds a caution: for pairs that cannot both be true, such as follow and nofollow, crawler behaviour is undefined and may vary. So do not count on every crawler resolving a clash the way Google does.

## What causes it? {#what-causes-it}

- An [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/) plugin set to nofollow a section, plus a server rule added later for the same folder.
- A [staging site](https://ursy.com/wiki/staging-site/) setup copied to the live site, with both a meta tag and a header to block crawlers.
- A content delivery layer or [CDN](https://ursy.com/wiki/cdn/) rule that adds headers to some paths.
- Rules in an [.htaccess file](https://ursy.com/wiki/htaccess-file/). Google’s page shows an Apache example that sets `X-Robots-Tag "noindex, nofollow"` for every PDF.

## A worked example {#a-worked-example}

A small business blog moves to a new theme. A month later, a crawl shows the issue on `/blog/` and every page under it. The meta tag reads `noindex, nofollow`, left over from building the site. The developer removes it. The next crawl still flags nofollow.

A check of the response headers shows this line:

```
X-Robots-Tag: noindex, nofollow
```

It comes from a server rule written for the old staging copy. Once it is removed too, both copies are gone. The blog posts can be crawled through the index, and the noindex has gone with it. Google says changes are seen only after a recrawl, which its [noindex guide](https://developers.google.com/search/docs/crawling-indexing/block-indexing) says can take months for some pages, so the fix needs patience.

## How to fix it {#how-to-fix-it}

1. Decide if the page should be nofollow at all. Most pages should not. A login page or a page of untrusted user links might.
2. If not, remove both copies. If yes, keep one copy only and note where it lives.
3. For single links you do not vouch for, use link attributes instead. Google’s guide to [qualifying outbound links](https://developers.google.com/search/docs/crawling-indexing/qualify-outbound-links) covers `sponsored`, `ugc` and `nofollow`. See also [sponsored and UGC links](https://ursy.com/wiki/sponsored-and-ugc-links/).
4. Do not block the page in [robots.txt](https://ursy.com/wiki/robots-txt/) while you wait. Google says blocked pages have their robots rules ignored, because the crawler cannot read them.

## How to check it {#how-to-check-it}

- Our [meta tag checker](https://ursy.com/meta-tag-checker/) shows the robots meta tag in the HTML.
- Our [HTTP header checker](https://ursy.com/http-header-checker/) shows any X-Robots-Tag the server sends. Our [step-by-step header checker guide](https://ursy.com/guides/how-to-use-http-header-checker/) shows each field.
- Our [indexability checker](https://ursy.com/indexability-checker/) answers whether Google can index the page, looking at noindex, robots rules, canonical and status.
- Our [link rel checker](https://ursy.com/webmaster-tools/link-rel-checker/) looks at rel values on single links, which helps you tell link-level rules from page-level ones.
- In [Google Search Console](https://ursy.com/wiki/google-search-console/), [URL Inspection](https://ursy.com/wiki/url-inspection/) lets you view the crawled page with its raw HTML and HTTP headers, per [Search Console Help](https://support.google.com/webmasters/answer/9012289).

For more than a handful of pages, start with our [SEO audit](https://ursy.com/seo-audit/). [Site audit](https://ursy.com/pro/site-audit/) is part of URSY Pro (Pro).

## Questions {#questions}

### Is this issue harmful on its own? {#is-this-issue-harmful-on-its-own}

Only if you did not mean the page to be nofollow. If you did, the double copy is just untidy. Keep one.

### Which copy should I keep? {#which-copy-should-i-keep}

For HTML pages, the meta tag is easier to see and edit. For PDFs and other files, only the header works, as MDN notes.

### Does Bing read both? {#does-bing-read-both}

MDN says Google, [Yahoo](https://ursy.com/wiki/yahoo/) and [Bing](https://ursy.com/wiki/bing/) support robots rules in the X-Robots-Tag header as well as in the meta tag.

## Related words {#related-words}

- [Nofollow](https://ursy.com/wiki/nofollow/)
- [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/)
- [Meta robots tag](https://ursy.com/wiki/meta-robots-tag/)
- [Internal linking](https://ursy.com/wiki/internal-linking/)
- [Crawlability](https://ursy.com/wiki/crawlability/)

## Sources {#sources}

- [Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag), checked 25 November 2026
- [MDN: X-Robots-Tag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Robots-Tag), checked 25 November 2026
- [MDN: meta name=”robots”](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/robots), checked 25 November 2026
- [Google Search Central Blog: Evolving “nofollow”, new ways to identify the nature of links (10 September 2019)](https://developers.google.com/search/blog/2019/09/evolving-nofollow-new-ways-to-identify), checked 25 November 2026
- [Google Search Central: Qualify your outbound links to Google](https://developers.google.com/search/docs/crawling-indexing/qualify-outbound-links), checked 25 November 2026
- [Google Search Central: Block search indexing with noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing), checked 25 November 2026
- [Search Console Help: URL Inspection tool](https://support.google.com/webmasters/answer/9012289), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
