<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged noindex</title>
<link>https://coderlegion.com/tag/noindex</link>
<description>Powered by Question2Answer</description>
<item>
<title>noindex vs robots.txt: Which to Use and the Mistake to Avoid</title>
<link>https://coderlegion.com/32141/noindex-vs-robots-txt-which-to-use-and-the-mistake-to-avoid</link>
<description>&lt;p&gt;noindex is for keeping a page out of results; a robots.txt Disallow is for stopping crawlers from requesting URLs. The two aren't interchangeable. A disallowed URL can still appear in Google without a description, and a noindex tag on a disallowed page is never seen, so using both keeps pages in Google. That combination is the most common indexing mistake I see on small-business sites.&lt;/p&gt;
&lt;p&gt;The guide explains the difference between discovery, crawling and indexing, and what each control does at which step, based on Google's documentation and the RFC 9309 standard. If you want something private, neither is right; it belongs behind a login or HTTP authentication.&lt;/p&gt;
&lt;p&gt;I walk through fixing the double-blocked page (remove the Disallow, keep the noindex, let it be recrawled), the difference between the meta robots tag and the X-Robots-Tag header for PDFs and other files, and two things that don't work long term: a Noindex line in robots.txt (ignored since September 2019) and the Removals tool (temporary).&lt;/p&gt;
&lt;p&gt;For AI, robots.txt is the main documented control for AI crawlers, while Google's own AI features follow the same noindex and snippet rules as Search, and Google-Extended controls Gemini use without affecting Search. I finish with common cases like staging sites and a decision table matching each goal to the right control.&lt;/p&gt;
&lt;h4 id=&quot;key-takeaways&quot;&gt;Key takeaways&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;robots.txt controls crawling; noindex controls indexing&lt;/li&gt;
&lt;li&gt;A noindex on a disallowed page is never seen&lt;/li&gt;
&lt;li&gt;Use X-Robots-Tag for PDFs and non-HTML files&lt;/li&gt;
&lt;li&gt;Protect staging sites with authentication, not robots.txt&lt;/li&gt;
&lt;li&gt;Noindex in robots.txt has been ignored since 2019&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Related on BuiltToWinWeb: &lt;a rel=&quot;nofollow&quot; href=&quot;https://built2winweb.com/blog/canonical-tags-duplicate-content/&quot;&gt;canonical tags explained&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Read the full guide on BuiltToWinWeb:&lt;/strong&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;https://built2winweb.com/blog/noindex-vs-robots-txt/&quot;&gt;&lt;strong&gt;Noindex vs robots.txt, and when to use each&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A summary by Jacob Campbell of an article first published on built2winweb.com on October 7, 2026.&lt;/em&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/32141/noindex-vs-robots-txt-which-to-use-and-the-mistake-to-avoid</guid>
<pubDate>Fri, 23 Oct 2026 04:00:51 +0000</pubDate>
</item>
</channel>
</rss>