Key takeaways
- Robots.txt manages crawling. Google says it “is not a mechanism for keeping a web page out of Google.” Noindex is the tool for that.
- The most damaging blocks I find on SME sites are accidents: staging rules copied to the live site, a WordPress visibility box left ticked, or noindex set in a plugin template.
- A noindex tag only works if Google can crawl the page, so a Disallow rule on the same URL cancels it.
- Blocking CSS and JavaScript files can stop Google from understanding pages that depend on them.
- The Page indexing report names each kind of block. Fix the cause, test with URL Inspection, then validate.
Robots.txt and indexing problems on small and medium-sized business sites are rarely about clever crawl rules. They are usually accidents: a line copied from a staging site, a setting left ticked after launch, or a plugin that adds noindex to a page type nobody checked. Finding them quickly is a routine part of the technical SEO for SMEs I do, because one wrong line can keep a whole site out of Google.
If you want the rules themselves, how the file is written and matched, I explain them in a separate guide on how Google reads robots.txt. This article is about the mistakes that block indexing by accident, how to spot each one in Search Console, and the order I fix them in.
I first published this article in 2025 and have rewritten it, removing statistics, budgets and performance claims I could not trace to any source.
Two controls with two different jobs
Google’s introduction to robots.txt says “A robots.txt file is used primarily to manage crawler traffic to your site,” and that it “is not a mechanism for keeping a web page out of Google.” A blocked URL “can still appear in search results, but the search result won’t have a description.”
Noindex does the other job. Google’s page on blocking indexing with noindex says that when Google sees it, “Google will drop that page entirely from Google Search results, regardless of whether other sites link to it.” It can be a meta tag, <meta name="robots" content="noindex">, or an X-Robots-Tag HTTP header.
Most accidental blocks come from mixing these up, or from one of them being switched on where nobody meant it to be.
Staging rules that reach the live site
The most expensive mistake I see on SME sites happens at launch. A developer builds the new site on a staging address and blocks it from search engines, which is sensible. Then the site goes live with the same robots.txt, often just two lines:
User-agent: *
Disallow: /
That tells every crawler not to fetch anything. On WordPress there is a second version of the same accident. The Reading settings have a box called “Discourage search engines from indexing this site”. The WordPress documentation says that since version 5.3, ticking it adds a robots meta tag with noindex and nofollow to the head of every page, and older versions sent back Disallow: / in robots.txt. It also notes that “it is up to search engines to honor your request.” Many builders tick it on staging and forget it at launch.
My launch check is short: open /robots.txt on the live domain, view the source of the home page and one inner page and search for “noindex”, and check the WordPress Reading settings. It takes five minutes and catches the worst case.
Noindex where nobody meant it
The second group of accidents is quieter, because it affects only some pages. In audits I often find:
- an SEO plugin setting that marks a whole content type, such as services, case studies or products, as noindex;
- a page builder template, used for several pages, with noindex set in its own settings;
- an
X-Robots-Tag: noindexheader added by the server or a CDN rule, often to PDFs or a whole folder, which you will not see in the page source; - noindex added to category or tag pages that, on that site, are real landing pages.
The header case is why I always check with Google’s own view. Google suggests you “use the URL Inspection tool to see the HTML that Googlebot received while crawling the page,” and the same tool shows whether indexing is allowed and why not.
The double block that keeps pages half-visible
This is where robots.txt and indexing collide. Someone wants a page out of Google, so they add noindex and also disallow it in robots.txt to be thorough. The result is the opposite. Google’s noindex page is clear that “the page or resource must not be blocked by a robots.txt file” for noindex to work, and that a blocked page “can still appear in search results, for example if other pages link to it.”
In the Page indexing report this shows up as “Indexed, though blocked by robots.txt”, which Google describes as “The page was indexed despite being blocked by your website’s robots.txt file.” If you want such a page out, remove the Disallow rule so Google can crawl it, keep the noindex, and wait for Google to recrawl it. If you want the page in, remove both.
Blocked CSS and JavaScript
Some robots.txt files block folders such as /wp-content/, /assets/ or /js/, usually copied from an old template. Google’s guidance on resource files is direct: “don’t block them, or else Google won’t do a good job of analyzing pages that depend on those resources.”
On a small business site this can mean Google sees a page without its layout, menus or content loaded by scripts. The URL Inspection live test shows which resources could not be loaded. Remove the rule unless you have a clear reason for it, and never block the files that build your main content.
How robots.txt and indexing mistakes show up in Search Console
The Page indexing report names each kind of block. This is how I read them on an SME site.
| Report status | What it means | What I check first |
|---|---|---|
| URL blocked by robots.txt | Google was not allowed to fetch the URL | Whether the rule was meant for this URL |
| URL marked ‘noindex’ | Google crawled the page and found noindex | Plugin, template and header settings |
| Indexed, though blocked by robots.txt | Indexed from links without being crawled | Whether you want it in or out, then fix both rules |
| Blocked due to unauthorized request (401) | A login or password stopped Googlebot | Leftover staging passwords |
| Crawled – currently not indexed | No block, Google chose not to index it yet | Content and internal links, not robots rules |
The last row matters. Not every unindexed page is blocked. If the page is crawlable and has no noindex, the cause lies elsewhere, and changing robots.txt will not help.
For the file itself, the robots.txt report in Search Console “shows which robots.txt files Google found for the top 20 hosts on your site,” with the fetch status, the last check and any parsing issues.
A recovery order after an accidental block
When I find a block that should not be there, I work in this order:
- Fix the cause: the robots.txt line, the WordPress setting, the plugin template or the server header.
- In the robots.txt report, use “Request a recrawl” for the file. Google suggests it when you have unblocked important URLs or fixed a critical error.
- Run a live test in the URL Inspection tool on the home page and two or three key pages, and request indexing for them.
- Make sure your XML sitemap lists the pages you want indexed and nothing that is still blocked.
- Validate the fix in the Page indexing report, then leave it alone and recheck in a week or two.
Be patient with the rest of the site. Google notes that “it may take months for Googlebot to revisit a page.” Key pages usually return first, and you cannot force the others.
Before any launch or redesign goes live, I read the robots.txt file and one page’s source myself, because a single leftover line can undo months of work.
FAQ
Does robots.txt stop a page from appearing in Google?
No. Google says robots.txt is not a way to keep a page out of Google, and a blocked URL can still appear without a description. Use noindex on a crawlable page instead.
Can I use Disallow and noindex together?
Not on the same URL if you want it out of Google. Google has to crawl the page to see the noindex, so the Disallow rule stops the noindex from working.
My new WordPress site is not in Google. What should I check first?
Open the live robots.txt file, then check whether “Discourage search engines from indexing this site” is ticked in the Reading settings. Then inspect the home page in Search Console to see whether indexing is allowed.
How long does recovery take after removing a block?
Key pages you inspect and submit often come back first. Google says it may take months for Googlebot to revisit some pages, so the rest of the site can take longer.