Menu

1 / 2

A page-level robots nofollow silently disables every link on the page

DEV Community: html·Priyanshu Chowdhury·12 days ago
#z1YiWCNS
#devto2#devto#dev#identifier#anchor
Long article (714 words) — no AI summary yet.
Reading 0:00
15s threshold

I wasted an afternoon on a link audit last week. Every anchor on the page looked clean: no rel="nofollow" , no redirect, no JavaScript handler, correct href . It passed nothing.

The reason was one tag in the document head:

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

Enter fullscreen mode

Exit fullscreen mode

That is it. When a page carries a page-level nofollow robots directive, every link on that page is treated as nofollow - including anchors with no rel attribute at all. Reading the anchor tells you nothing on its own.

Why this is easy to miss

Most link-checking advice says "inspect the anchor". So you inspect the anchor, see rel="noopener noreferrer" , conclude it is fine, and move on. The directive that actually decides the outcome is somewhere else in the document.

It is also not rare. Platforms that do not want to vouch for user-supplied links set it at the page level, because that is one tag instead of sanitising every anchor a user pastes in.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.