<?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: Kunal</title>
    <description>The latest articles on DEV Community by Kunal (@kunalb).</description>
    <link>https://dev.to/kunalb</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%2F4181870%2F99b92bf4-4433-4600-aea3-6efb65ab2bb9.png</url>
      <title>DEV Community: Kunal</title>
      <link>https://dev.to/kunalb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kunalb"/>
    <language>en</language>
    <item>
      <title>Where is my noindex coming from? 3 places it hides (and how to check each with curl)</title>
      <dc:creator>Kunal</dc:creator>
      <pubDate>Tue, 13 Oct 2026 10:32:03 +0000</pubDate>
      <link>https://dev.to/kunalb/where-is-my-noindex-coming-from-3-places-it-hides-and-how-to-check-each-with-curl-2jfk</link>
      <guid>https://dev.to/kunalb/where-is-my-noindex-coming-from-3-places-it-hides-and-how-to-check-each-with-curl-2jfk</guid>
      <description>&lt;p&gt;Your page loads fine. The HTML looks clean. But Search Console says &lt;strong&gt;"Excluded by 'noindex' tag"&lt;/strong&gt;, and you can't find the tag anywhere.&lt;/p&gt;

&lt;p&gt;I ran into this so often while building a site monitor that I wrote down where the noindex actually lives. There are 3 places. Here's how to check each one from the terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The meta robots tag (the one you can see)
&lt;/h2&gt;

&lt;p&gt;This is the one everybody knows. It sits in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of the page:&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="s"&gt;"robots"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"noindex"&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;Check it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://quietwatch.app/signin | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-io&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;meta[^&amp;gt;]*robots[^&amp;gt;]*&amp;gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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="s"&gt;"robots"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"noindex"&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 sign-in page is noindexed on purpose. If one of your real pages shows this, the usual causes are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WordPress: &lt;strong&gt;Settings → Reading → "Discourage search engines from indexing this site"&lt;/strong&gt; left ticked after launch. It adds the tag to every page.&lt;/li&gt;
&lt;li&gt;An SEO plugin (Yoast, Rank Math) set to noindex for that post type.&lt;/li&gt;
&lt;li&gt;A staging setting copied to production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Watch out for &lt;code&gt;&amp;lt;meta name="googlebot" content="noindex"&amp;gt;&lt;/code&gt; too. It only targets Google, so a quick search for "robots" can miss it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The X-Robots-Tag header (the one you can't see)
&lt;/h2&gt;

&lt;p&gt;This is the sneaky one. The noindex isn't in the HTML at all. The server, the host or a CDN sends it as an HTTP header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;X-Robots-Tag: noindex
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;View source won't show it, and neither will your CMS. Check the headers instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; &lt;span class="s2"&gt;"https://httpbin.org/response-headers?X-Robots-Tag=noindex"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; x-robots
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;X-Robots-Tag: noindex
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(httpbin is a public test service that returns whatever header you ask for, so it's a safe way to see what a real one looks like.)&lt;/p&gt;

&lt;p&gt;Common sources: a rule in &lt;code&gt;.htaccess&lt;/code&gt; or the nginx config, a hosting panel setting, a Cloudflare transform rule, or a staging environment that adds the header to everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A redirect hop (the one nobody checks)
&lt;/h2&gt;

&lt;p&gt;If a URL redirects, every hop has its own headers. A noindex on any hop before the final page can still cause trouble, and most checkers only look at the last response.&lt;/p&gt;

&lt;p&gt;Follow the whole chain and print the headers of every hop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sIL&lt;/span&gt; http://quietwatch.app | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s2"&gt;"^(HTTP|location|x-robots)"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt; &lt;span class="m"&gt;301&lt;/span&gt; &lt;span class="ne"&gt;Moved Permanently&lt;/span&gt;
&lt;span class="na"&gt;Location&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://quietwatch.app/&lt;/span&gt;
&lt;span class="s"&gt;HTTP/1.1 200 OK&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That chain is clean: one 301 to HTTPS, then a 200, with no &lt;code&gt;X-Robots-Tag&lt;/code&gt; on either response. If you see an &lt;code&gt;X-Robots-Tag&lt;/code&gt; line under the &lt;code&gt;301&lt;/code&gt;, that hop is sending a noindex.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus: robots.txt can hide all of this
&lt;/h2&gt;

&lt;p&gt;If robots.txt blocks a URL, Google never fetches the page, so it never sees the noindex either. You end up with a URL that's "Indexed, though blocked by robots.txt", and your noindex does nothing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-s&lt;/span&gt; https://example.com/robots.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So the order matters: allow crawling first, let Google see the noindex, then block it later if you really want to.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;curl -s URL | grep -io '&amp;lt;meta[^&amp;gt;]*robots[^&amp;gt;]*&amp;gt;'&lt;/code&gt; for the meta tag (look for googlebot too)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl -sI URL | grep -i x-robots&lt;/code&gt; for the header&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;curl -sIL URL&lt;/code&gt; to check every redirect hop&lt;/li&gt;
&lt;li&gt;Check robots.txt isn't blocking the URL&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you'd rather not use the terminal, I built a free checker that does all four for up to 10 URLs at once and tells you which one is responsible, no signup: &lt;a href="https://quietwatch.app/tools/noindex-checker" rel="noopener noreferrer"&gt;quietwatch.app/tools/noindex-checker&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Have you ever found a noindex somewhere weirder than these three? I'd like to hear about it.&lt;/p&gt;

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