Robots.txt Tester - Check if a URL is Blocked
Paste your robots.txt, enter a URL path and a crawler, and see instantly whether it is allowed or blocked, with the exact matching rule highlighted. Implements the real robots exclusion rules.
A path like /blog/post or a full URL
Test robots.txt rules the way crawlers actually read them
This tester evaluates a URL path against your robots.txt exactly as major crawlers do. Paste the file contents, choose a user-agent such as Googlebot, Bingbot, or GPTBot, and enter a path. The verdict shows ALLOWED or BLOCKED, highlights the exact rule and line number that decided the outcome, and lists every sitemap declared in the file.
SEO professionals use it to debug indexing problems, developers verify staging rules before a launch, and site owners increasingly check how AI crawlers like GPTBot are treated. A single misplaced slash in robots.txt can deindex an entire site, so testing rules before deployment is far cheaper than discovering the mistake in Search Console weeks later, after rankings and traffic have already taken the hit.
The implementation follows the Robots Exclusion Protocol standardized in RFC 9309. The crawler picks the group with the most specific matching user-agent token, falling back to the asterisk group. Within that group, the longest matching pattern wins between Allow and Disallow, with Allow winning ties. Wildcards match any characters, and a dollar sign anchors a pattern to the end of the URL.
Common gotchas the tester makes visible: an empty Disallow line permits everything, rules are matched against the path only and never the domain, and robots.txt is about crawling, not indexing. A page blocked here can still appear in results if other sites link to it; use a noindex meta tag when you need it gone from search entirely.
Built-in templates cover the frequent cases, including a WordPress standard file and a block list for AI training crawlers. After fixing your rules, generate clean page metadata with the Meta Tag Generator or check your international setup with the Hreflang Tag Generator, both free on ToolForte. Since your robots.txt content is parsed locally and never uploaded, you can safely test draft rules for staging environments and unreleased sections of your site.
How the Robots.txt Tester Works
- 01Paste your robots.txt content, or load one of the built-in templates as a starting point.
- 02Enter the URL path you want to test and pick a user-agent: Googlebot, Bingbot, GPTBot, any bot, or a custom name.
- 03The tester selects the matching user-agent group and applies the longest-match rule between Allow and Disallow, honoring * wildcards and $ anchors.
- 04Read the ALLOWED or BLOCKED verdict with the deciding rule highlighted, plus every sitemap declared in the file.
Understanding How Crawlers Read Robots.txt
Robots.txt is deceptively simple and regularly misunderstood. A crawler first chooses exactly one group of rules: the group whose User-agent line most specifically matches its name, falling back to the asterisk group if none does. Rules from non-matching groups are ignored entirely, which surprises people who expect a Googlebot group and a star group to combine; they do not. Within the chosen group, the crawler compares the URL path against every Allow and Disallow pattern and obeys the longest matching pattern, with Allow winning exact ties. Wildcards make patterns flexible: an asterisk matches any sequence of characters, and a dollar sign anchors the pattern to the end of the URL, so Disallow: /*.pdf$ blocks PDF files everywhere. Three traps account for most real-world incidents. An empty Disallow line blocks nothing at all. Disallow: / blocks everything, and it has taken down entire sites when a staging file shipped to production. And robots.txt controls crawling, not indexing: a blocked URL can still appear in search results if other sites link to it, so use a noindex meta tag when you need a page out of results. Test every rule change here before deploying, exactly as the crawler will read it.
When to Use the Robots.txt Tester
Use it before every robots.txt deployment, when pages unexpectedly vanish from search results, and when Search Console reports blocked resources. It answers concrete questions fast: is /admin/ actually blocked, does the Allow exception for admin-ajax.php work, will GPTBot be kept out while Googlebot crawls freely? It is also the safe way to review a robots.txt copied from a template or a plugin, since a single wrong slash can hide your whole site. Because parsing happens locally, testing draft rules for staging and unreleased sections is completely private.
Common Use Cases
- Verifying a new robots.txt before deployment so no critical section is accidentally blocked.
- Debugging why a page disappeared from search by testing its exact path against the live rules.
- Checking how AI crawlers like GPTBot are treated compared to Googlebot and Bingbot.
- Confirming the sitemap declarations that search engines will discover in the file. Meta Tag Generator - SEO Tags in Seconds
Expert Tips
- Test the most valuable paths on your site, not just the ones you meant to block; incidents come from unintended matches.
- Remember rules match the path only: Disallow: /shop blocks /shop and /shopping alike unless you add a trailing slash.
- Keep a permissive User-agent: * group even when blocking specific bots, so unknown crawlers get sane defaults.
Frequently Asked Questions
- Not necessarily. Robots.txt stops crawling, not indexing. A blocked URL can still appear in results, usually without a description, if other pages link to it. Use a noindex meta tag on a crawlable page to remove it properly.
- The rule with the longest matching pattern wins. If an Allow and a Disallow pattern match with equal length, Allow wins. The tester highlights exactly which rule decided your verdict and on which line.
- No. A crawler obeys only the single most specific matching group. If a Googlebot group exists, Googlebot ignores the * group completely, which is one of the most common robots.txt misunderstandings.
If a URL is blocked in robots.txt, is it removed from Google?→
Which rule wins when Allow and Disallow both match?→
Do Googlebot rules and the * group combine?→
Related tools
12 suggested- 01SERP Snippet Preview - Google Result SimulatorPreview your Google search snippet on desktop and mobile with real pixel-width meters and counters. Free browser-based SERP simulator for SEO work.
- 02Hreflang Tag Generator - International SEOGenerate valid hreflang link tags and the XML sitemap variant for multilingual sites, with validation. Free browser-based international SEO tool.
- 03Headline Analyzer - Score Your Titles 0-100Score headlines 0-100 on length, power words, emotion, and format, with a SERP pixel-width preview. Free browser-based analyzer with concrete tips.
- 04Hashtag Generator - Instagram, TikTok & XTurn any caption into relevant hashtags for Instagram, TikTok, and X using curated niche sets. Free browser-based generator with platform limits.
- 05UTM Link Builder - Campaign URL GeneratorBuild trackable campaign URLs with utm_source, medium, and campaign parameters, presets, and history. Free browser-based builder for marketers.
- 06Meta Tag Generator - SEO Tags in SecondsGenerate optimized SEO meta tags for your website. Title, description, Open Graph, robots, and canonical tags. Free with live preview.
- 07Open Graph Preview - Social Share TesterPreview how your page will look when shared on Facebook, Twitter, and LinkedIn. Test Open Graph tags before publishing. Free tool.
- 08robots.txt Generator - SEO Crawl ControlGenerate a robots.txt file to control search engine crawling. Set rules for specific bots and paths. Free online generator.
- 09Schema Markup Generator - JSON-LD FreeGenerate JSON-LD structured data for better search engine results. Organization, Article, FAQ, Product and more schema types.
- 10XML Sitemap Generator - Free SEO ToolGenerate valid XML sitemaps from a list of URLs. Set custom frequency, priority, and last modified dates. Free online sitemap builder.
- 11Hash Generator - SHA-256, SHA-512 & MoreGenerate SHA-1, SHA-256, SHA-384, and SHA-512 hashes securely in your browser. Uses Web Crypto API - your data never leaves your device.
- 12Lorem Ipsum Generator - Free Placeholder TextGenerate placeholder text for your designs, mockups, and layouts. Choose paragraphs, sentences, or word count. One-click copy.