Robots.txt or Noindex? What Each Does on a Trades Website
Many site owners block a page in robots.txt to hide it from Google. Google says that is not what the file is for. This guide explains the difference.
I am Robiul Alom Ronju, Founder of Nexranking.

What robots.txt does
A robots.txt file tells crawlers which URLs they may access. Its main purpose is managing crawler traffic, such as skipping unimportant or near-duplicate pages.
What it does not do
- Google says it is not a mechanism for keeping a web page out of Google. Use noindex or password protection.
- A blocked URL can still be indexed if other sites link to it, often without a description.
- It is not a security measure for private content.
Common mistakes
- Using it to hide pages.
- Blocking resources Google needs to understand a page.
- Combining crawling and indexing rules so they counteract each other.
If a CMS such as WordPress has its own search visibility setting, use that rather than editing the file by hand.
What to do
Check your robots.txt now. Make sure it does not block pages you want found. See sitemaps. For a check, ask for an audit.
How to tell which you need
- If you do not want Google to fetch a page at all, use robots.txt. That is rare for a small site.
- If you want a page crawled but not shown in results, use noindex.
- If you want a page gone for good, use 404 or 410.
- Never block a page in robots.txt and expect noindex on it to work.
A quick audit
Open yoursite/robots.txt and read it. If you see a line that disallows the whole site or a main folder, ask why. Then check a few important pages in the URL inspection tool for indexing status. A forgotten block from the design stage is the most common mistake.
Why mixing them up is costly
Many owners think robots.txt removes a page from Google. It does not. It tells crawlers not to fetch a URL. A blocked URL can still be indexed if other pages link to it, and Google then cannot read a noindex tag on it because it cannot fetch the page. The two tools do different jobs.
Three scenarios
- A thank you page you do not want in results: leave it crawlable and add noindex.
- A folder of internal files that should not be crawled: use robots.txt.
- An old page you want gone: return 404 or 410, or redirect it.
If you are unsure, do nothing rash. A wrong robots.txt line can block your whole site, and the effect may take weeks to show. Test any change in Search Console, and keep a copy of the old file.
Does robots.txt remove a page from Google?
No. Google says it is not a mechanism for keeping a page out of Google.
How do I keep a page out of Google?
Use noindex or password protection.
Can a blocked page still appear?
Yes, if other sites link to it, often without a description.
Is robots.txt a security tool?
No. Do not use it to protect private content.
Related guides
- Duplicate Content and Canonical URLs for Trades Websites
- URL Structure for Trades Websites: Readable, Short and Consistent
- ‘Crawled, Currently Not Indexed’: What Google Says It Means
Browse every guide in the trades SEO guide library.
Sources
- Google Search Central, Introduction to robots.txt: https://developers.google.com/search/docs/crawling-indexing/robots/intro