indexive
ServicesSolutionsIndustriesResearch
Free execution audit
GuidePublished July 8, 2026·Sources checked October 13, 2026·5 min read

What robots.txt and noindex each really control

Robots.txt tells crawlers which URLs they may fetch. Noindex tells Google not to keep a page in search results. They solve different problems, and mixing them up is one of the most common ways to keep a page in Google by accident.

By Indexive Research · every source is linked at the end
Key points
500 KiB
robots.txt size limit Google enforces
24 hours
how long Google generally caches robots.txt
5 hops
redirects Google follows for robots.txt at least

Crawling and indexing are different steps

Crawling means a bot fetches a URL. Indexing means Google stores the page so it can appear in results. Robots.txt works on the first step. Noindex works on the second.

Google describes robots.txt as a way to tell compliant crawlers which URLs they may access, mainly to manage crawl traffic. It says plainly that robots.txt is not a mechanism for keeping a web page out of Google.

Why a blocked URL can still be indexed

If a URL is disallowed in robots.txt but other pages link to it, Google may still index the URL. Google's robots.txt specification says it can show the URL in results without a snippet. The page content is not read, so the result has no description.

This surprises many teams. They block a section, then find its URLs listed in search. The block stopped the fetch. It did not remove the URL from Google's knowledge.

Why noindex needs the page to be crawlable

Noindex is a rule on the page itself. You can add it as a meta tag in the head of the HTML, or send it as an X-Robots-Tag HTTP header. The header also works for files such as PDFs, images and video. Google says that once Googlebot sees the rule, it drops the page from results, even if other sites link to it.

Googlebot has to fetch the page to see that rule. If robots.txt blocks the URL, the crawler never sees the noindex tag or header. The page can then stay in results when other pages link to it. Google also says it does not support noindex inside robots.txt.

  • Meta tag: noindex inside a robots meta tag in the page head. Use the googlebot name to target only Google.
  • HTTP header: X-Robots-Tag: noindex in the server response.
  • After adding noindex, Google must recrawl the page. Google says this can take days to months depending on the page's importance.

Robots.txt rules and limits to know

The file must be named robots.txt and sit at the root of the host it covers. A site can have only one, and it applies only to the protocol, host and port where it is posted. It must be UTF-8 plain text.

Google enforces a limit of 500 KiB. Content beyond that is ignored. Google generally caches the file for up to 24 hours. If the file returns a 4xx error, Google treats it as if no valid file exists, with 429 handled differently. If it returns a 5xx error, Google stops crawling the site for the first 12 hours, then uses the last cached version for up to 30 days.

  • Supported directives: user-agent, disallow, allow and sitemap. The star wildcard works in all rules except sitemap.
  • Rules are case-sensitive.
  • Compliance is voluntary. Google notes that robots.txt cannot enforce crawler behavior, and not every search engine supports every rule.

Common mistakes

  • Disallowing a page and adding noindex to it. The crawler cannot read the noindex, so the page may stay indexed.
  • Using robots.txt to hide private content. Google recommends password protection for that.
  • Using robots.txt to pick a canonical. Google lists this as a mistake because disallowed URLs can still be indexed without content.
  • Using noindex to manage crawl load. Google still requests the page and then drops it, so crawl time is still spent.
  • Leaving a blocking rule in place after a launch or staging move.

What to do

Pick the tool by the goal. If you want a URL out of search results, allow crawling and add noindex, or password protect it. If you want to reduce crawling of sections that should never be fetched, use robots.txt.

To check a page, use the URL Inspection tool in Search Console to see the HTML Googlebot received and confirm the noindex rule is there. The robots.txt report in Search Console helps you check the file. The Page Indexing report shows pages where Googlebot found a noindex rule. For urgent removals, Google points to its removals documentation instead of waiting for a recrawl.

Sources

  1. [1]
    Introduction to robots.txt
    Google Search Central. Robots.txt manages crawl traffic and is not a way to keep a page out of Google; blocked URLs can still be indexed.
  2. [2]
    How to write and submit a robots.txt file
    Google Search Central. File name, location, encoding, supported directives, case sensitivity and testing.
  3. [3]
    How Google interprets the robots.txt specification
    Google Search Central. 500 KiB limit, status code handling, 24 hour caching and indexing of disallowed URLs without a snippet.
  4. [4]
    Block Search indexing with noindex
    Google Search Central. Meta tag and X-Robots-Tag, why a robots.txt block hides noindex, recrawl timing and debugging.
  5. [5]
    How to specify a canonical URL with rel=canonical and other methods
    Google Search Central. Lists robots.txt and noindex as mistakes for canonicalization.
  6. [6]
    Managing crawl budget for large sites
    Google Search Central. Noindex does not save crawl time because Google still requests the page.

Sources were last checked on October 13, 2026. Documentation changes, so confirm any detail that matters to a decision against the source itself.

How to cite

Indexive Research. (2026, July 8). What robots.txt and noindex each really control. Indexive AI. https://indexive.ai/research/robots-txt-vs-noindex

Keep reading
Guide · 5 min
How Google picks the canonical URL for a page
Guide · 5 min
Who needs to worry about crawl budget, and what wastes it
Reference · 6 min
Which AI crawlers honor robots.txt, by vendor

Frequently asked questions.

Straight answers about how we work. Still have a question? The free audit is the fastest way to get one answered for your site.

No. Google says robots.txt is not a mechanism for keeping a page out of Google. A disallowed URL can still be indexed if other pages link to it, usually without a snippet.

No. Google states it does not support specifying noindex in robots.txt. Use a robots meta tag or an X-Robots-Tag header on the page instead.

Googlebot may not have recrawled it yet, or robots.txt may block it so the rule is never seen. Google says recrawl timing ranges from days to months, and URL Inspection shows what Googlebot received.

Google enforces a limit of 500 KiB. Content beyond that point is ignored.

See your first 30 days of execution.

A free execution audit: your prioritized backlog, effort estimates, and what we'd ship first. Read-only access, no contract.

By continuing you agree to our Privacy Policy and Terms.
indexive
ServicesResearchContentTechnical SEOImplementationGEO / AI searchPerformanceMigrations
SolutionsDeclining traffic recoveryAI search visibilitySEO backlog executionTechnical debt cleanupContent at scaleHeads of SEOVPs of Marketing & CMOsLean teams with no SEO
IndustriesB2B SaaSDeveloper toolsCybersecurityFintechHealthcare & life sciencesE-commerceMarketplacesManufacturing & industrialProfessional services
CompanyResearchFree auditSecurityContact
© 2026 Indexive AIPrivacyTermsSan Francisco, CA