Blocked by Robots.txt: Find and Fix the Rule
Blocked by robots.txt in Search Console? See how Google picks the winning rule, when a block is fine, and test your exact page with our free rule tester.

Last updated December 2, 2026
Blocked by robots.txt means a rule in your robots.txt file stops Googlebot from crawling the page. Google respects the rule, so it does not read the page content.
Sometimes the block is on purpose, like for admin or search pages. When an important page is blocked, one line usually causes it. The tester below finds that line.
Key Takeaways
- Robots.txt controls crawling, not indexing. Blocked pages can still appear without a description.
- Google uses only the most specific group for each crawler.
- The longest matching rule wins. If Allow and Disallow tie, Allow wins.
- Paths are case-sensitive, and Google caches robots.txt for up to 24 hours.
- To keep a page out of Google, use noindex and let Google crawl it.
Robots.txt rule tester
Open yoursite.com/robots.txt, copy it and paste below. Enter the blocked address and pick a crawler. Nothing leaves your browser.
Digieh tool. Uses Google’s documented matching rules, read December 2, 2026. Bingbot results use the same logic as a guide only.
What Does Blocked by Robots.txt Mean?
Robots.txt is a small text file at the root of your site. It tells crawlers which paths they may visit. When a rule disallows a path, Googlebot skips it.
Google’s help page on unblocking says a blocked page probably will not appear in Search. If it does appear, the result will not include a description.
| Status | What it means | Usual action |
|---|---|---|
| Blocked by robots.txt | Not crawled, and not indexed | Unblock only if you want it in Google |
| Indexed, though blocked by robots.txt | Indexed from links, but not crawled | Unblock it, or use noindex to remove it |
| Excluded by noindex tag | Crawled, then left out on purpose | Remove noindex if you want it indexed |
Source: Digieh table based on Search Console Help and Google’s noindex guide, read December 2, 2026.
Is the Block Intended?
Many sites block some paths on purpose. These pages add nothing to search results, so blocking them saves crawl time.
| Blocked path | Usually | Action |
|---|---|---|
Admin area like /wp-admin/ | Intended | Leave |
Internal search like /?s= | Intended | Leave |
| Cart and checkout | Intended | Leave |
| Blog posts or product pages | A mistake | Unblock |
| Style sheet or JavaScript files | Often a mistake | Unblock so Google can render pages |
The whole site with Disallow: / | A serious mistake on a live site | Fix right away |
Source: Digieh table of common robots.txt setups. Check against your own site needs.
How Does Google Decide Which Rule Wins?
Google documents its exact matching rules in its robots.txt guide. Our tester follows these rules step by step.
- Google picks one group: the one with the most specific user agent that matches. Other groups are ignored.
- Inside that group, Google checks every Allow and Disallow rule against the path.
- The rule with the longest matching path wins.
- If an Allow and a Disallow rule are the same length, Allow wins.
- If no rule matches, the page is allowed.
| Symbol or rule | Meaning | Example |
|---|---|---|
| * | Matches any characters | Disallow: /*.pdf blocks every file with .pdf in the path |
| $ | Marks the end of the address | Disallow: /*.pdf$ blocks only addresses ending in .pdf |
| Case | Paths are case-sensitive | /fish does not match /Fish.asp |
| Empty Disallow | Blocks nothing | Disallow: with no path allows everything |
Source: Google Search Central, how Google interprets robots.txt, updated October 23, 2026, read December 2, 2026.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
How Do You Unblock a Page?
- Confirm the block. Inspect the address in Search Console and check the Page indexing section.
- Find the rule. Paste your robots.txt and the address into the tester above.
- Edit the file. Remove the line, narrow it, or add a longer Allow rule for the page.
- Check the live file at yoursite.com/robots.txt to confirm your change saved.
- Request indexing for key pages in Search Console.
On hosted platforms, the file may be managed for you. Google suggests searching your provider’s documentation for robots.txt instructions. On WordPress, a search plugin often edits the file for you.
What Does a Safe WordPress Robots.txt Look Like?
WordPress creates a simple virtual robots.txt when no file exists. It blocks the admin folder but allows one admin file that themes and plugins use. Our tester loads that pattern as its example.
Most blogs need little more. Keep the admin rule, consider blocking internal search results, and add a sitemap line so crawlers can find your posts. Avoid blocking folders like uploads, themes or plugins, because Google needs images, styles and scripts to see pages properly.
If a search plugin manages the file, edit it there. Two sources writing robots.txt can cause confusing results.
How Fast Does Google See the Change?
Google generally caches robots.txt for up to 24 hours, its guide says. So a fix may not show for a day. Google may cache it longer if your server has errors when Google tries to refresh it.
| Robots.txt response | What Google does |
|---|---|
| File found | Follows the rules, caches up to 24 hours |
| 404 or other 4xx error | Treats the site as having no restrictions |
| 5xx server error | Stops crawling for 12 hours, then uses the last good copy for up to 30 days |
| File over 500 KiB | Ignores content past the limit |
Source: Google Search Central robots.txt guide, read December 2, 2026.
A server that fails often can slow crawling for your whole site. Our guide to the 500 internal server error helps fix server faults.
Should You Use Robots.txt to Remove Pages?
No. Robots.txt only stops crawling. If other pages link to a blocked page, Google can still list it. To keep a page out of Search, Google says to use noindex and leave the page crawlable.
Our guide to excluded by noindex tag explains how noindex works. Never use both on one page, because the block hides the noindex rule from Google.
What was blocking your page?
- A folder Disallow rule
- A wildcard rule
- A Googlebot-only group
- Disallow: / on the whole site
- Not sure
What Else Can Look Like a Robots.txt Block?
Sometimes the status stays after you fix the file. That is often just the 24-hour cache, or Google has not recrawled the page yet. Inspect the live address to see the current result.
Other blocks look similar but have different causes. A firewall or security plugin can return a 403 error to Googlebot. A login wall can stop it too. These are not robots.txt issues, so check your host and security settings if the tester shows the page as allowed.
If pages are allowed and still missing, see crawled, currently not indexed for the next step.
If the tester says a page is allowed but Google reports it missing, read our guide to not found 404 in Search Console.
Test Yourself
Two rules match: Allow: /shop/ and Disallow: /shop/sale. Which wins for /shop/sale?
- Allow, because it comes first
- Disallow, because it is the longer match
- Neither
Google uses the longest matching rule. Disallow: /shop/sale is longer, so the page is blocked.
How long does Google usually cache robots.txt?
- One hour
- Up to 24 hours
- One week
Google’s guide says it generally caches robots.txt for up to 24 hours.
Frequently Asked Questions
Does blocked by robots.txt mean the page is not indexed?
Usually, yes. But Google says a blocked page can still appear without a description if other pages link to it.
Why is my page still blocked after I fixed robots.txt?
Google caches the file for up to 24 hours. Wait, then inspect the live address and request indexing.
Should I block style sheets and JavaScript files?
No. Google needs them to render your pages. Blocking them can hurt how Google understands your content.
Is the order of rules important?
No. Google uses the longest matching rule, not the first one. Group order in the file does not matter either.
Conclusion
Blocked by robots.txt means a rule stops Google from crawling the page. Decide if the block is intended. If not, find the exact line with the tester, edit it, and give Google a day to reread the file.
Editor’s Note
This guide is accurate as of December 2, 2026. We based it on Google Search Console Help and Google Search Central documentation read on that date. Google can update its rules and reports.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1AI & TechHow to Make a Scanned PDF Searchable, Free7 min read
2Home & KitchenLG Dryer Error Codes: Meanings and Step-by-Step Fixes11 min read
3AI & TechPlugged In, Not Charging: Laptop Fault or Feature?7 min read
4AI & TechTouchpad Not Working in Windows 11: Quick Fixes7 min read
5AI & TechWindows 11 Start Menu Not Working: Safe Fixes7 min read
6AI & TechAlternate Page With Proper Canonical Tag, Explained Simply7 min readFound this useful?












