Robots.txt Checker
By Digital Mansoor, 14+ years in SEO. Updated November 2026.
Paste your robots.txt, pick a bot and a URL. See whether it is allowed, which rule decided it, and any syntax problems.
- Free
- No signup
- Per bot results
- Wildcards
Rate this tool
Rated 5 / 5 from 2 user ratings. Click a star to add yours.
A robots.txt checker that tells you which URLs a bot can crawl
Paste your robots.txt, list the URLs you care about, name the bots, and see Allowed or Blocked for each pair with the exact rule that decided it.
Most robots.txt mistakes are small. A missing slash blocks a folder you meant to open. A wildcard catches parameters you wanted crawled. A staging rule gets copied to the live site and the whole domain goes dark for crawlers. You find these by testing real URLs against the file, not by reading it.
This tool applies the rules the way Google documents them: the most specific match wins, and when an Allow and a Disallow tie, Allow wins. It supports the star wildcard and the dollar end anchor. It also flags a missing Sitemap line and a blanket block on the star group.
One limit to know before you rely on it. The tool tests the text you paste. It does not fetch your live file. If your server serves a different file to different bots, or a cache holds an old version, test the live URL in Search Console as well.
- Tests URL and bot pairs
- Shows the matching rule for each result
- Warns about site-wide blocks and no Sitemap line
- Share link and save in your browser
Built by Mansoor BhanpurawalaSEO consultant since 2012. About Digital Mansoor
Paste the file, list URLs, pick bots
Test the paths that matter most: your homepage, key pages, search pages, parameter URLs and anything you meant to block.
- Paste your robots.txt. Copy it from yourdomain.com/robots.txt or from a draft you plan to upload.
- List URLs to test. One per line, as paths such as /blog/post/ or with parameters.
- Name the bots. Use a comma list, for example Googlebot, Bingbot, GPTBot.
- Run the test. Read each Allowed or Blocked result and the rule behind it.
| Field | What to enter |
|---|---|
| robots.txt content | The full file text |
| URLs to test | One path per line |
| Bots | Comma separated crawler names |
A WordPress file, a staging block and wildcards
The first example is a typical WordPress file. It blocks the admin folder but allows the ajax file, blocks internal search, and blocks GPTBot from the whole site. The homepage and blog posts stay open for Googlebot and Bingbot, while GPTBot is blocked everywhere. The admin ajax file is Allowed for the star group because the Allow rule is more specific than the folder block.
The second is a staging file that disallows everything. The tool also warns that no Sitemap line exists and that the star group blocks the whole site, which is correct on staging and a disaster on production.
The third uses wildcards. A PDF rule blocks guide.pdf but not guide.pdf with a query string, because the dollar sign anchors the end of the path. A sort parameter rule blocks the shop page with sort, and an Allow rule on downloads keeps that folder open.
| URL | Googlebot |
|---|---|
| /wp-admin/ | Blocked |
| /wp-admin/admin-ajax.php | Allowed |
| /search/ | Blocked |
| /blog/seo-tips/ | Allowed |
| URL | Googlebot |
|---|---|
| /guide.pdf | Blocked |
| /guide.pdf with a query | Allowed |
| /shop/ with sort | Blocked |
| /downloads/guide.pdf | Allowed |
How the checker decides
These rules follow Google’s published robots.txt documentation. Other crawlers can differ.
| Rule | What happens |
|---|---|
| Longest match wins | The rule with the longer matching path takes priority |
| Allow beats Disallow on a tie | Equal length matches resolve to Allow |
| Star wildcard | Matches any run of characters |
| Dollar anchor | Matches the end of the URL only |
| Specific group first | A bot uses its own group if one exists, otherwise the star group |
| Empty Disallow | Allows everything for that group |
Google has documented a size limit for robots.txt files. Check the current figure in Google’s documentation before you rely on a very large file.
Where this checker fits
SEO consultants
Check a client file before a migration and prove which URLs a rule affects.
Developers
Test a new robots.txt in staging before it ships to production.
Ecommerce teams
Make sure filter and sort parameters are blocked the way you planned.
Publishers
Decide which AI bots to allow or block and test the result.
Site owners
Find out why a page stopped appearing in a crawl.
Agencies
Add a robots.txt test to every launch checklist.
Robots.txt does not remove pages from Google
This is the most common mistake I see.
| Goal | Use | Why |
|---|---|---|
| Stop crawling | robots.txt Disallow | Saves crawl effort on pages you never want fetched |
| Keep out of results | noindex on a crawlable page | Google must fetch the page to see the tag |
| Keep private | Login or server rules | Robots.txt is public and not security |
| Block AI training bots | Bot specific Disallow | Works only for bots that follow it |
One line can hide your whole site
A blocked page can still be listed if other pages link to it. Google then shows the URL without a description. If you want a page out of results, let Google crawl it and add a noindex tag. If you block the page in robots.txt, Google never sees the tag.
Also never block files Google needs to render your pages, such as scripts and styles. Blocking them can hide layout and content from the crawler.
For AI bots, a Disallow only works for crawlers that choose to follow it. Treat it as a request, not a lock. Check each vendor documentation for the current bot names, because they change.
Terms used on this page
User-agent
The line that names which bot a group of rules applies to.
Disallow
A path the bot should not crawl.
Allow
A path the bot may crawl, often used to open a part of a blocked folder.
Wildcard
The star character, matching any run of characters.
End anchor
The dollar sign, matching the end of the URL.
Sitemap line
A line that points crawlers to your sitemap file.
What this tool cannot do
- It tests pasted text. It does not fetch your live robots.txt.
- Rules follow Google documentation. Bing and AI bots may handle edge cases differently.
- It cannot tell whether a page is indexed. Blocking and indexing are separate.
- It does not check server headers, redirects or meta robots tags.
- Your text stays in your browser. The tool makes no network requests. Saved results sit in your own browser storage, and a share link keeps your inputs in the URL after the hash.
Built from real launch checks
I am Mansoor Bhanpurawala, an SEO consultant since 2012 with 500+ client projects. A robots.txt test is part of every launch and migration check I run. If a result looks wrong to you, send me the file on WhatsApp and I will check the rule logic.
Robots.txt Checker FAQ
Answers on crawl rules, blocking and testing.
What is a robots.txt file?
A text file at the root of your site that tells crawlers which paths they may or may not fetch.
Does Disallow remove a page from Google?
No. It stops crawling. A blocked page can still be listed if other sites link to it. Use noindex on a crawlable page to keep it out.
Where must robots.txt live?
At the root of the host, for example yourdomain.com/robots.txt. A file in a subfolder is not read.
Is robots.txt a security tool?
No. It is public and only polite bots follow it. Use logins or server rules to protect private content.
Do I need a robots.txt file?
Not always. Without one, crawlers assume everything is open. You need one to block paths or to point to your sitemap.
How does the tool pick Allowed or Blocked?
It finds all rules in the bot group that match the URL, takes the longest match, and lets Allow win a tie.
Which bot group does it use?
The group named for that bot if one exists, otherwise the star group.
What does the star wildcard do?
It matches any run of characters. Disallow with a star and a parameter name blocks every URL with that parameter.
What does the dollar sign do?
It anchors the rule to the end of the URL. A PDF rule with a dollar sign blocks the file but not the same file with a query string.
Can I test several bots at once?
Yes. Enter a comma separated list and the tool shows a result for every URL and bot pair.
Why does it warn about no Sitemap line?
A Sitemap line helps crawlers find your sitemap. It is optional, but useful, so the tool nudges you.
Does it fetch my live robots.txt?
No. It tests the text you paste. Copy the live file or use Search Console to confirm what Google sees.
Will Bing and AI bots behave the same?
Mostly, for simple rules. Edge cases can differ, so check each vendor documentation.
Should I block AI bots?
That is a business decision. A bot specific Disallow works only for bots that follow it. Check each vendor for current names.
Is my file stored or sent anywhere?
No. The test runs in your browser and makes no network requests. Save uses your browser storage and a share link keeps inputs in the URL after the hash.
What should I check after changing robots.txt?
Test your key URLs here, then check the live file and the URL Inspection tool in Search Console.
Want this done for your site?
Send your URL on WhatsApp and I will tell you what to fix first.
Message me on WhatsAppNeed more than a free tool? See my technical SEO consulting and on-page SEO consulting work.
Need more than a free tool?
See my freelance SEO consulting and SEO for small business work.
Leave a Reply