Skip to content
Zunelo Digital

SEO

Robots.txt vs Noindex: How to Keep a Page Out of Google

By 10 min read
Robots.txt vs noindex: which one keeps a page out of Google, why using both can backfire, and how to check

Sooner or later every site owner has a page they do not want in Google: a thank-you page, a draft, an old offer, a private client page. The usual move is to add the page to robots.txt and assume it is gone. Often it is not, and sometimes the move makes things worse.

This post explains the difference between robots.txt and noindex in plain words, what Google says about each, how to hide a page for a day and for good, and how we handle our own legal and thank-you pages. We read Google Search Central’s pages on robots.txt, on noindex, on the robots meta tag and on removing pages on 11 October 2026, and we checked our own site’s settings on 21 October 2026. If a page of yours is blocked and you think it should not be, our post on canonical tags covers a related cause of pages dropping out.

Quick summary, if you’re short on time:

  • Google says robots.txt tells crawlers which URLs they can access, is used mainly to avoid overloading your site, and “is not a mechanism for keeping a web page out of Google”.
  • To keep a page out of Google, Google says to block indexing with noindex or password-protect the page.
  • For noindex to work, the page must not be blocked by robots.txt. If it is, the crawler never sees the noindex rule, and the page can still appear in search results, for example if other pages link to it.
  • For a quick removal, Google’s Removals tool works within a day but lasts about 6 months. For a permanent removal: remove or update the content, password-protect the page, or add noindex.
  • Do not use both on the same page. Pick noindex, and leave the page crawlable.

In plain terms: the robots.txt file is a text file of crawl rules, and a meta robots tag in the HTML carries the noindex directive. A disallow in robots.txt stops crawling and does not keep a page out of Google. Check both in Google Search Console, and treat this as basic SEO housekeeping for any search engine.

Jump to a section:

The difference in one table

robots.txtnoindex
What it controlsWhich URLs crawlers can accessWhether a page is kept in the search index
Where it livesOne file at the root of your siteA meta tag in the page, or an HTTP response header
What Google says it is forMainly to avoid overloading your site with requestsPreventing indexing: Google drops the page entirely from search results once it sees the rule
Keeps a page out of Google?No. Google says it is not a mechanism for thatYes, if Google can crawl the page and read the rule
Needs the page to be crawlable?No, it blocks crawlingYes. It cannot be blocked by robots.txt

Google’s page on robots.txt says this directly: robots.txt tells crawlers which URLs they can access, it is used mainly to avoid overloading your site with requests, and it is not a mechanism for keeping a web page out of Google. To do that, it says, block indexing with noindex or password-protect the page.

The trap: robots.txt can hide the noindex

Google’s page on blocking indexing with noindex explains how the rule works. When Googlebot crawls a page and finds the tag or header, Google drops the page entirely from search results, regardless of whether other sites link to it. Then comes the warning: for the rule to work, the page must not be blocked by robots.txt and must be otherwise accessible to the crawler. If it is blocked, the crawler never sees the noindex rule, and the page can still appear in search results, for example if other pages link to it.

So the common double-lock, a Disallow line in robots.txt plus a noindex tag on the page, does the opposite of what the owner wants. The Disallow stops Google reading the noindex. Our own plain-English reading: robots.txt says “do not come in”, noindex says “come in, read this, and then forget the page”, and you cannot do both.

How to keep a page out of Google, step by step

  1. Decide how long. A page you need gone today is a different job from a page that should never be indexed.
  2. For a quick removal, use the Removals tool in Search Console. Google says it removes a page hosted on your site from search results within a day, and that you should protect or remove all variations of the URL, such as uppercase paths and query versions. It also says requests made in the Removals tool last for about 6 months.
  3. For a permanent removal, Google’s page on removing pages lists three options: remove or update the content (which it calls the most secure way), password-protect the page, or use noindex.
  4. If you use noindex, put <meta name="robots" content="noindex"> in the page’s head, or send an X-Robots-Tag: noindex header. Google’s page on the robots meta tag says these settings can be read only if crawlers are allowed to access the page.
  5. Leave the page crawlable, and wait. Google has to recrawl the page to see the rule.
  6. Check in Search Console that the page now shows as excluded by noindex.

For a private page, a password is the strongest option, because Google says password-protecting limits access so that only the right users can view the page. Noindex only asks search engines not to list it. Anyone with the link can still open it.

How we do it on our own site

We checked our own settings on 21 October 2026.

PageHow it is kept outWhat Search Console says
Privacy policy, terms of service, refund policynoindex meta tag, and not blocked in robots.txtListed as “Excluded by ‘noindex’ tag”, which is what we want
Thank-you pagenoindex meta tag, not blockedNot listed
Feeds for categories, tags and authorsDisallowed in robots.txtOne category feed shows as “Crawled, currently not indexed”
robots.txt overallBlocks only the admin area (with an exception for the Ajax file), and the three kinds of feed, and lists our sitemapNot applicable

The pattern is the one Google describes: the pages we want out use noindex and stay crawlable, and robots.txt is used for housekeeping, not for hiding pages. The category feed that shows as crawled but not indexed is a harmless case: Google last crawled it on 22 August and chose not to index it, and a feed is not a page anyone needs to find. We do not know whether the Disallow rule was in place at that crawl.

Mistakes we see

  • Disallow plus noindex on the same page. The crawler never reads the noindex.
  • Using robots.txt to hide a page that other sites link to. Google says it can still appear in search results.
  • Leaving a noindex on after launch. A staging site or a draft often carries a noindex, and it goes live with the page. Check your important pages after every launch.
  • Noindex on a page that is in your sitemap. The sitemap says “please index this” and the page says the opposite. Keep them consistent.
  • Thinking noindex is security. It is not. For private content, use a password.
  • Forgetting the URL variations. Google says to protect or remove all variations of a URL when you request a removal.

How to check what Google sees

  1. Open the page in your browser, view the source and search for noindex. Also check the HTTP headers if you can.
  2. Open /robots.txt and make sure the page is not disallowed.
  3. In Search Console, use the URL Inspection tool, which shows how Google last crawled the page.
  4. In the Page indexing report, look at the reasons. “Excluded by ‘noindex’ tag” means Google read your rule. A page blocked in robots.txt will show a different reason.

A prompt to review your setup

An AI tool can read your robots.txt and tags and flag conflicts. It cannot crawl your site, so give it the actual text.

Act as a careful technical SEO reviewer. Check my robots.txt and my page settings for conflicts, using only the text I paste.

My details:
– My robots.txt, exactly as it is: [paste]
– A list of pages I want kept out of Google, with the reason for each: [for example “thank-you page, privacy policy, a private client page”]
– For each of those pages, the robots meta tag and any X-Robots-Tag header, copied from the page source or headers: [paste or write “unknown”]
– Whether each page is in my sitemap: [yes or no]

Please do the following:
1. For each page, say which of these applies: blocked in robots.txt only, noindex only, both, or neither.
2. Flag every page that is blocked in robots.txt and also has noindex, and explain why the noindex will not be seen.
3. Flag any page that has noindex and is also in my sitemap.
4. For each page, say whether noindex, a password or removal is the right tool, and why.
5. List what you cannot know without the live pages or Search Console.

Rules:
– Use only what I pasted. Do not guess what is on pages I did not paste.
– Say clearly when something is your opinion.
– Write in plain, simple English.

Then confirm each flagged page in Search Console before you change anything.

Questions about robots.txt and noindex

Does robots.txt stop a page appearing in Google?

No. Google says robots.txt is not a mechanism for keeping a web page out of Google. A page blocked in it can still appear in search results if other pages link to it.

What is the right way to keep a page out of Google?

Google says to block indexing with noindex or to password-protect the page. For content you need gone for good, removing or updating it is the most secure option.

Can I use robots.txt and noindex together?

Not on the same page. If robots.txt blocks the page, Google’s crawler never sees the noindex rule. Leave the page crawlable and use noindex.

How long does noindex take to work?

Google has to recrawl the page to see the rule, and crawling can take anywhere from a few days to a few weeks, per its recrawl page. For something urgent, use the Removals tool, which works within a day.

How long does a Removals tool request last?

About 6 months, according to Google. To block a page permanently, remove or update the content, password-protect it, or add noindex.

Should my thank-you page be noindex?

That is our practice, and a common one, because the page has no value to someone who has not filled in the form. Keep it crawlable so the noindex can be read.

Is noindex enough for a private page?

No. It only asks search engines not to list the page. Anyone with the link can still open it, so use a password for private content.

Where this matters

Use noindex to keep a page out of Google, keep that page crawlable, and keep robots.txt for housekeeping. Use a password for anything private, and check the result in Search Console.

If you would like us to check your robots.txt and your noindex pages, send us the address and we will tell you what we see.

About the author

Imraan ShariffDigital Growth Strategist

Imraan Shariff is a Digital Growth Strategist at Zunelo Digital, an AI-first digital marketing agency in Bangalore, focused on SEO, local SEO, Google Ads and website growth. He writes on these areas plus AI visibility, drawing on hands-on work across Zunelo's client accounts.

View LinkedIn profile

SEO

More on this

Free audit · No obligation

Turn what you read into a plan for your site

Share your website and goals. Zunelo will identify the highest-priority opportunities and the service that should come first.

Get your free audit
Trust this source?