<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Priyanshu Chowdhury</title>
    <description>The latest articles on DEV Community by Priyanshu Chowdhury (@pubsignal).</description>
    <link>https://dev.to/pubsignal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260935%2F7126d57b-ae3b-4885-966e-28d16c6a0119.png</url>
      <title>DEV Community: Priyanshu Chowdhury</title>
      <link>https://dev.to/pubsignal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pubsignal"/>
    <language>en</language>
    <item>
      <title>A page-level robots nofollow silently disables every link on the page</title>
      <dc:creator>Priyanshu Chowdhury</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:04:04 +0000</pubDate>
      <link>https://dev.to/pubsignal/a-page-level-robots-nofollow-silently-disables-every-link-on-the-page-32oj</link>
      <guid>https://dev.to/pubsignal/a-page-level-robots-nofollow-silently-disables-every-link-on-the-page-32oj</guid>
      <description>&lt;p&gt;I wasted an afternoon on a link audit last week. Every anchor on the page looked clean: no &lt;code&gt;rel="nofollow"&lt;/code&gt;, no redirect, no JavaScript handler, correct &lt;code&gt;href&lt;/code&gt;. It passed nothing.&lt;/p&gt;

&lt;p&gt;The reason was one tag in the document head:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"robots"&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"nofollow"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;h2&gt;
  
  
  Why this is easy to miss
&lt;/h2&gt;

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

&lt;p&gt;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. Reasonable engineering decision, invisible to anyone reading the HTML of a single link.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ten-second check
&lt;/h2&gt;

&lt;p&gt;Two lines in the console, before you trust any anchor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'meta[name="robots"]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pageNoFollow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;nofollow&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;links&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'a[href^="http"]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pageNoFollow&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;links&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!/&lt;/span&gt;&lt;span class="n"&gt;nofollow&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pageNoFollow&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;links&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;pageNoFollow&lt;/code&gt; is true, &lt;code&gt;live&lt;/code&gt; is empty and the page is worth nothing for link building regardless of how the anchors look.&lt;/p&gt;

&lt;p&gt;An HTTP header does the same job from the other direction - &lt;code&gt;X-Robots-Tag: nofollow&lt;/code&gt; - so check &lt;code&gt;curl -sI&lt;/code&gt; too when a page has no meta tag but the links still behave oddly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The related trap: a DOI you think you have
&lt;/h2&gt;

&lt;p&gt;Different domain, same shape of mistake. I published a small dataset to an InvenioRDM-based repository. The DOI field defaults to &lt;em&gt;"I already have one"&lt;/em&gt;. Fill the form honestly, hit publish, and it refuses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Missing DOI for required field
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The draft is not recoverable from that state. The default assumes you are depositing something previously published; if you are minting a new identifier you have to pick &lt;em&gt;"No, I need one"&lt;/em&gt; and reserve it first, before filling the rest of the form. One wrong default, one destroyed draft.&lt;/p&gt;

&lt;p&gt;Both bugs are the same class: a default that is correct for most users and silent when it is wrong for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you do mint a DOI, put it in the markup
&lt;/h2&gt;

&lt;p&gt;A DOI is only useful if machines can find it. For a dataset, schema.org has &lt;code&gt;Dataset&lt;/code&gt;, and the identifier belongs in two places:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"@context"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://schema.org"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Dataset"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Publisher RPM Index"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"identifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://doi.org/10.5281/zenodo.24465801"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sameAs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://doi.org/10.5281/zenodo.24465801"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"license"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://creativecommons.org/licenses/by/4.0/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://pubsignal.in/data/publisher-rpm-index"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;identifier&lt;/code&gt; states the persistent ID. &lt;code&gt;sameAs&lt;/code&gt; links the entities. Neither changes the page's canonical URL - the DOI points at the archived snapshot, while the live page stays the canonical document. Conflating the two is how you end up with the archived copy cited as the source.&lt;/p&gt;

&lt;p&gt;Validate it by parsing the JSON-LD yourself and checking that &lt;code&gt;identifier&lt;/code&gt; survived. Schema helpers silently drop properties they do not know about, and a dropped &lt;code&gt;identifier&lt;/code&gt; looks exactly like a page that never had one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Read &lt;code&gt;&amp;lt;meta name="robots"&amp;gt;&lt;/code&gt; before reading any anchor.&lt;/li&gt;
&lt;li&gt;Read &lt;code&gt;X-Robots-Tag&lt;/code&gt; from the response headers as well.&lt;/li&gt;
&lt;li&gt;Never trust a platform's claim that its links are do-follow. Read the page.&lt;/li&gt;
&lt;li&gt;If you are minting an identifier, reserve it before filling the form.&lt;/li&gt;
&lt;li&gt;Emit it as &lt;code&gt;identifier&lt;/code&gt; + &lt;code&gt;sameAs&lt;/code&gt;, and leave &lt;code&gt;canonical&lt;/code&gt; alone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The dataset behind the DOI example is here, if you want to see the markup in the wild: &lt;a href="https://pubsignal.in/data/publisher-rpm-index" rel="noopener noreferrer"&gt;PubSignal Publisher RPM Index&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Google's reference for the robots meta tag: &lt;a href="https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag" rel="noopener noreferrer"&gt;developers.google.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>debugging</category>
      <category>html</category>
      <category>seo</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
