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.

  • Search
  • 2 of 148 points
  • Easy with access to the site settings

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

  1. Open yourdomain.com/robots.txt.
  2. If it says "Disallow: /" under "User-agent: *", remove that line or narrow it to the folders you really want hidden.
A slash on its own means "everything".
Before
User-agent: *
Disallow: /
After
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.

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.