robots.txt does not block the whole site
robots.txt is a small file that tells search engines where they may go. Two lines in it can shut them out of the whole site, and that happens by accident more often than on purpose.
What it means
robots.txt is a small text file at the top of a website. It tells search engines which parts they may read. Most sites need only a few lines, or none.
One line can shut every search engine out of the whole site: "Disallow: /" under "User-agent: *". Our rule fails only for that, unless the file lets Google or Bing in with lines of their own: a search engine follows the lines written for it by name. Having no robots.txt at all is fine and passes.
What causes it
- The site was blocked while it was being built, and the file was never changed.
- A copy of the test site's robots.txt went live.
- Someone meant to block one folder and blocked everything.
How to fix it
- Open yourdomain.com/robots.txt.
- If it says "Disallow: /" under "User-agent: *", remove that line or narrow it to the folders you really want hidden.
User-agent: * Disallow: /
User-agent: * Disallow: /cart/ Sitemap: https://example.com/sitemap.xml
Check it yourself
Type your address followed by /robots.txt into the browser.
Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.
How we test it
- What we look at
- The site's robots.txt file.
- It passes when
- It does not block the whole site for all search engines. A site that blocks unknown crawlers but lets Google or Bing in by name passes. No robots.txt also passes.
- What it is worth
- 2 of 148 points in rule book 0.5, in Search. A rule that cannot be checked on a page counts neither for nor against it.
Questions
Does blocking a page in robots.txt remove it from Google?
Not reliably. It stops Google reading the page, but the address can still be listed if other sites link to it. To keep a page out, use noindex and let Google read it.
Where is my robots.txt?
Always at the same place: your address followed by /robots.txt.
Sources
Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.
- Introduction to robots.txtGoogle Search Central
- How Google interprets the robots.txt specificationGoogle for Developers (Crawling infrastructure)
- RFC 9309: Robots Exclusion ProtocolIETF (RFC Editor)
Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.
Does your website have this problem?
A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.