Business SystemsGuide
robots.txt Doesn't Remove Pages from Google. Here Is What Does.
robots.txt is a request to crawlers about what to read. It is not a lock and not a removal tool. To keep a page out of Google, let Google read it and tell it noindex, or take the page away.
Author
DueClix Engineering
Published
Reading time
5 min read
A common request: "We added the page to robots.txt, so it should be gone from Google by now." Weeks later it is still there, sometimes with the words "No information is available for this page" where the description used to be. Nothing is broken. robots.txt was asked to do a job it does not do.
What robots.txt actually does
robots.txt is a plain text file at the root of a site that tells crawlers which addresses they may read. Google says plainly that it is not a way to keep a page out of Google. If other pages link to a blocked address, Google can still list it. It just cannot read it, so the result has no description.
Its real purpose is to manage crawling: keep crawlers away from endless filter and search combinations, internal tools, or anything that wastes their time and your server's.
The trap: blocking the page hides the noindex tag
The tag that does keep a page out of results is noindex. But Google has to read the page to see it. If robots.txt blocks the page, Google never sees the tag, and the page can stay listed. Many sites do both at once and get neither.
| Setting | Google reads the page? | Page can still appear in results? |
|---|---|---|
| Blocked in robots.txt | No | Yes, if linked from elsewhere, without a description |
| noindex tag, page not blocked | Yes | No, once Google has read it again |
| Blocked in robots.txt and noindex | No, so it never sees the tag | Yes, if linked from elsewhere |
| Page deleted (404 or 410) | Yes | No, once Google has read it again |
| Behind a login | No | No |
How to remove a page from Google, in order
- Decide what the page is. If it should not exist, delete it so the address returns 404 or 410. If it should exist but not be in Google, keep it and add noindex. If it is private, put it behind a login.
- Make sure robots.txt does not block it. Remove any Disallow line that covers the page, so Google can read it and see the noindex tag or the 404.
- Add the noindex tag to the page's head:
<meta name="robots" content="noindex">. For PDFs and other files, your developer can send the same rule as anX-Robots-Tagheader. - If it is urgent, use the Removals tool in Search Console. It hides the page quickly, but Google says a request only lasts about six months. It buys time while steps 1 to 3 take effect; it does not replace them.
- Check with URL Inspection in Search Console. Once Google has read the page again, the report shows it as excluded by noindex, or not found.
- Only after it has dropped out, you can block the address in robots.txt again if crawling it wastes resources.
robots.txt is public, and not everyone obeys it
Anyone can open yoursite.com/robots.txt. A line such as Disallow: /old-backups/ tells every curious visitor exactly where to look. Never list a folder you are hoping to keep secret.
And the file only works for crawlers that choose to follow it. Google says reputable crawlers obey it and others may not. We saw this on our own site: our robots.txt already disallowed /portal/, our customer area. In October our Cloudflare logs showed a scraper making about 8,400 requests each to the portal's login, claim and review pages, from thousands of different addresses. It ignored the file entirely. What stopped it was a Cloudflare rule that challenges non-search-engine traffic on those pages, and the login itself.
What our own file does
User-Agent: *
Allow: /
Disallow: /admin/
Disallow: /api/
Disallow: /portal/
User-Agent: AwarioBot
User-Agent: DotBot
Disallow: /
User-Agent: GPTBot
User-Agent: ClaudeBot
Allow: /
Disallow: /directory/
Disallow: /admin/
Disallow: /api/
Disallow: /portal/
Sitemap: https://dueclix.com/sitemap.xml
Sitemap: https://dueclix.com/directory/sitemap.xml- Admin, API and portal are disallowed to keep crawlers out of pages with nothing to read. They are also behind logins, which is what actually protects them.
- Two crawlers are told to stay off completely. On 5 November one of them made about 9,300 requests to our server in a day.
- Two AI crawlers may read the main site but not the business directory, which is mostly other companies' listings.
- Our Search Console report lists 829 addresses "Blocked by robots.txt". That is the file working as intended. The report puts them under "not indexed", which is easy to read as a problem when it is not.
Writing this, we found a line we should remove: our file also has a Host: line. Google supports only four fields in robots.txt (user-agent, allow, disallow and sitemap) and ignores the rest. It does no harm, but it does nothing for Google either.
A five-minute check of your own file
- Open yoursite.com/robots.txt and read every Disallow line.
- Look for a full block:
Disallow: /underUser-Agent: *blocks the whole site. It is often left behind after a site moves from a test address to the real one. - Check no important folder is blocked, such as the one your images, CSS or scripts live in. Google needs them to see the page as visitors do.
- Remove anything that hints at private folders. Protect those with a login instead.
- Make sure your sitemap is listed with a full address.
- In Search Console, open Page indexing and read the "Blocked by robots.txt" list. Every address on it should be one you meant to block.
Our free robots.txt generator builds a clean file with the common rules, and the website SEO checker shows whether a page carries a noindex tag. If pages are showing in Google that should not be, or missing that should be there, send us the address and we will tell you which setting is doing it.
Sources
- Google Search Central, Introduction to robots.txt, read 20 November 2026.
- Google Search Central, Block Search indexing with noindex, read 20 November 2026.
- Google Search Central, How Google interprets the robots.txt specification, read 20 November 2026. Supported fields.
- Search Console Help, Removals tool, read 20 November 2026. Temporary removals last about six months.
- Our own robots.txt, Search Console Page indexing report (dated 16 November 2026) and Cloudflare logs (22 October and 5 November 2026) for dueclix.com.