What do the two robots.txt statuses mean?
Search Console reports two related statuses. 'Blocked by robots.txt' lists URLs that Google knows about but has not crawled because a rule in your robots.txt file disallows them. Those URLs are not indexed. 'Indexed, though blocked by robots.txt' lists URLs that are blocked from crawling but which Google has indexed anyway, usually because other pages link to them. Google shows them in results without a description, because it has never read the page.
Both statuses come from the same misunderstanding that robots.txt is an indexing control. It is not. It tells crawlers which URLs they may fetch. Whether a URL appears in search depends on indexing signals, and Google can index a URL it knows exists from links, even if it cannot read the page.
Is 'Blocked by robots.txt' a problem?
Not when the blocked URLs are ones you intended to block: admin areas, internal search, cart and checkout paths, infinite filter combinations, or scripts that waste crawling. Blocking those is a normal way to keep crawlers focused on your important content. Review the list of examples and confirm everything there is meant to be blocked.
It is a problem when important pages are blocked, which usually happens through broad rules. A single line such as Disallow: /products blocks every URL beginning with /products, including all product pages. A leftover Disallow: / from a staging site blocks everything. Those mistakes stop pages from being crawled and indexed, and they are easy to make.
| Rule | Blocks | Typical mistake |
|---|---|---|
| Disallow: / | The entire site | Staging rule left in production |
| Disallow: /blog | Every URL starting with /blog, including /blog-post | Missing trailing slash |
| Disallow: /*? | Every URL with a query string | Blocks useful parameter pages too |
| Disallow: /wp-admin/ | The admin area | Usually correct |
| Disallow: /search | Internal search results | Usually correct |
| Disallow: /*.js$ | JavaScript files | Prevents Google rendering pages |
How do you fix an accidental block?
Find the rule that matches the URL. Open your robots.txt file at yourdomain.com/robots.txt and look for Disallow lines under the user agent that applies to Google, either User-agent: Googlebot or User-agent: *. Remember that rules match by prefix, and that the most specific matching rule wins between Allow and Disallow. The free link checker shows which rule blocks a given URL, and Search Console's robots.txt report shows the version Google last fetched.
- Identify the rule that blocks the important URLs.
- Change or remove it so only the intended paths remain blocked.
- Add an Allow rule for specific important paths inside a broader blocked folder, if needed.
- Deploy the updated robots.txt and confirm it is served with a 200 status.
- Test sample URLs to confirm they are now allowed.
- Request indexing for the most important pages and use Validate fix in the report.
How do you remove a page that is indexed though blocked?
If a blocked URL appears in search and you want it gone, the robots.txt block is actually what keeps it there. Google cannot see a noindex on a page it is not allowed to crawl. Remove the Disallow for that URL, add a noindex meta tag or X-Robots-Tag header, and let Google crawl it. Once it has seen the noindex and dropped the page, you can decide whether to block crawling again, though usually there is no need.
For urgent removals, Search Console's Removals tool can temporarily hide a URL from results for about six months while you put the permanent fix in place. Our guide on removing a URL from Google covers the options in detail.
Should you block CSS and JavaScript files?
No. Google renders pages much like a browser, and it needs the CSS and JavaScript that build the page to understand its content and layout. Blocking those files in robots.txt can make pages look broken or empty to Google, which hurts indexing and can affect how pages are evaluated on mobile. Remove rules that block resources needed to render your pages. Our guide on JavaScript SEO and indexing explains rendering in more depth.
How does robots.txt affect crawl budget?
On very large sites, robots.txt is a legitimate tool for steering crawling away from URLs that will never be useful, such as endless combinations of filters, calendar pages or session-based URLs. Google's documentation on crawl budget and faceted navigation recommends this approach. On small sites, crawl budget rarely matters, and aggressive blocking causes more problems than it solves.
If you use robots.txt to control crawling of filters, make sure the pages you do want indexed, such as the main category pages, are not caught by the same rules. Test patterns carefully, because wildcards can match far more URLs than intended. Our guide on sitemaps, internal links and crawl budget helps you decide whether you need crawl controls at all.
A worked example: a blocked product catalogue
An online shop adds the rule Disallow: /*? to stop crawling of filter URLs. A month later, product pages start dropping out of search. The shop's product URLs include a ?id= parameter, so the rule blocks every product page. Search Console shows thousands of products under 'Blocked by robots.txt' and some under 'Indexed, though blocked', appearing without descriptions.
The team replaces the broad rule with specific ones that block only the filter parameters, such as Disallow: /*?color= and Disallow: /*?sort=, and adds an Allow rule for /*?id=. They test sample URLs, deploy the change, request indexing for the top products and validate the fix. Most products are recrawled and indexed with full descriptions within three weeks. Longer term, they plan to move products to clean URLs without parameters.
What are the myths about robots.txt?
- Myth: robots.txt removes pages from Google. It blocks crawling; blocked URLs can still be indexed.
- Myth: robots.txt protects private content. It is public and only a request; use authentication.
- Myth: blocking more pages always improves crawl budget. On small sites it mostly causes problems.
- Myth: changes take effect instantly. Google caches robots.txt, usually for up to a day.
How do robots.txt rules match URLs?
Rules match the beginning of the URL path. Disallow: /shop blocks /shop, /shop/, /shop/shoes and also /shopping, because they all start with /shop. Adding a trailing slash, Disallow: /shop/, limits the rule to the folder. Google also supports two wildcards: * matches any sequence of characters, and $ marks the end of the URL. So Disallow: /*.pdf$ blocks URLs ending in .pdf, and Disallow: /*?sort= blocks any URL containing ?sort=.
When Allow and Disallow rules both match a URL, Google uses the most specific rule, meaning the one with the longest matching path. If they are equally specific, the less restrictive Allow wins. Rules are grouped by user agent, and Google follows the most specific group that names Googlebot, falling back to the * group. A Googlebot group overrides the * group entirely, which surprises people who add a few rules for Googlebot and lose the general ones.
You may also read
Google Not Indexing My Site: A 2026 Troubleshooting ChecklistA step-by-step 2026 checklist for when Google is not indexing your site: technical blocks, server issues, discovery gaps, quality problems and manual actions.
Duplicate, Google Chose Different Canonical Than User: 2026 FixWhy Google sometimes ignores your canonical tag and picks another URL in 2026, how to find the conflicting signals and how to get Google to accept your choice.
What if robots.txt returns an error?
How Google treats your site depends on the status code of robots.txt itself. If the file returns 404, Google assumes there are no restrictions and crawls everything. If it returns a server error (5xx) for an extended period, Google may stop crawling the site, because it cannot be sure what is allowed. That makes a broken robots.txt a serious problem. Make sure the file is served reliably with a 200 status, even if it is empty, and monitor it after server or CDN changes.
Should you block AI crawlers in robots.txt?
Some site owners add rules for crawlers used to gather content for AI models. That is a separate decision from search indexing. Blocking a dedicated AI crawler user agent does not stop Googlebot from crawling for search, as long as your rules target the specific user agent and not Googlebot or the * group. Be careful when copying lists of user agents from elsewhere: a broad rule can block search crawlers by accident. Review the full file after any change.
How does robots.txt work on subdomains?
Each hostname has its own robots.txt. Rules at www.example.com/robots.txt do not apply to shop.example.com or blog.example.com, which need their own files. The same is true for different protocols and ports. If a section of your site lives on a subdomain and is not being crawled as expected, check that subdomain's own robots.txt, which is easy to overlook, especially for subdomains set up by a third-party platform.
What about crawl-delay?
Google ignores the crawl-delay directive. Googlebot adjusts its crawl rate automatically based on how your server responds, slowing down if it sees errors or slow responses. If Googlebot is putting too much load on your server, improve server capacity or return 503 or 429 status codes temporarily during overload; Google's documentation describes how it reacts. Other search engines may honour crawl-delay, so it can still be relevant for them.
Can robots.txt block images and PDFs from search?
Yes, for crawling. Blocking an image folder in robots.txt stops Googlebot-Image from fetching those images, so they will not appear in Google Images. For PDFs and other documents, blocking crawling prevents Google from reading them, but as with HTML pages, the URLs could still be indexed from links. To reliably keep documents out of search results, allow crawling and send an X-Robots-Tag: noindex header for those files.
If you want your images to appear in Google Images, make sure they are not blocked. Our guide on getting images indexed covers image discovery and the signals Google uses.
What does a sensible robots.txt look like for most sites?
For most small and medium sites, a short file is best: a few Disallow rules for genuinely useless areas such as admin, cart, checkout and internal search, and a Sitemap line pointing to your sitemap. Everything else should be crawlable. Long, complex files are where accidents happen. If you inherit a long robots.txt, review each rule and remove those you cannot explain.
A typical small-site file might contain only five or six lines. That simplicity is a feature: every rule is easy to understand, and nobody is likely to block an important section by accident when editing it later. If a rule cannot be explained in one sentence, it probably should not be there.
How do you test robots.txt changes safely?
Before deploying, test the new rules against a list of important URLs and a list of URLs you intend to block. Confirm every important URL is allowed and every intended block works. After deploying, check the robots.txt report in Search Console, which shows the version Google fetched and any parsing problems. Monitor the Page indexing report over the following weeks for unexpected increases in blocked pages.
Keep robots.txt in version control alongside your site code, and include it in launch and migration checklists. A surprising number of traffic drops trace back to a robots.txt file that was replaced, emptied or copied from staging during a deployment.
Where Blink Index fits for robots.txt problems
robots.txt issues are fixed on your site. A blocked page cannot be crawled however it is submitted, so we recommend checking robots.txt rules before submitting anything. The free link checker does that for up to 50 URLs at once.
- Run important URLs through the free link checker to see robots.txt rules.
- Fix the rules on your site and confirm the pages are allowed.
- Request indexing for key pages and recheck with the free index checker.
For pages on other sites blocked by their robots.txt, only the site owner can change the rules. See the FAQ for more about what submissions can and cannot do.
Summary: crawling and indexing are different controls
'Blocked by robots.txt' means Google may not crawl the page, so it is not indexed; 'Indexed, though blocked' means Google indexed the URL from links without reading it. Remove Disallow rules for pages you want indexed. To keep pages out of search, allow crawling and use noindex. Test rules before deploying and check after every change. For noindex itself, see our guide on Excluded by noindex tag.