Robots.txt Validator & Tester
测试您的robots.txt文件是否允许或阻止特定URL和用户代理
robots.txt Content
Test URLs
Robots.txt Tester & Validator
Use this free robots.txt tester, validator, and checker to see whether a URL is allowed or blocked for Googlebot, Bingbot, or any custom crawler. Paste your robots.txt, enter a URL, choose the User-agent, and get an instant rule-by-rule result.
How to test your robots.txt
- 1
Paste your robots.txt
Copy the full content from your live /robots.txt file or draft rules and paste them into the tester.
- 2
Enter a URL to test
Provide the exact path you want to check, such as /admin/dashboard, /products/item, or a full URL.
- 3
Choose a User-agent
Select Googlebot, Bingbot, Googlebot-Image, or type a custom bot name to simulate how that crawler reads the file.
- 4
Read the matched rule
The tool shows the specific Allow or Disallow rule that wins, whether crawling is allowed, and why.
What the robots.txt checker validates
Allow vs Disallow
See which directive matches the longest path and whether it permits or blocks the tested URL.
Crawler-specific rules
Compare rules for Googlebot, Bingbot, all crawlers (*), or custom bots before publishing changes.
Syntax issues
Catch malformed directives, empty groups, unexpected spacing, and confusing rule order.
Crawl, not index
Understand whether the URL can be crawled. Use noindex separately when the page should not appear in search.
FAQ
What is a robots.txt validator?
It checks your file for syntax errors and confirms rules work as intended for specific URLs and bots.
How do I check if Googlebot can crawl a page?
Set User-agent to Googlebot, enter the URL path, paste your robots.txt — the tester shows if Googlebot can crawl it.
Why does a URL show as blocked?
A matching Disallow rule may be more specific than your Allow rule, or the URL may be inside a blocked folder. Check the matched rule shown by the tester.
Why test robots.txt before deploying?
Manual rules are easy to get wrong. A tester prevents you from accidentally blocking important pages from Google.
继续探索
您可能喜欢的其他 开发者工具…
JSON格式化工具
使用语法高亮和错误检测格式化、验证和压缩JSON
Base64编码/解码
将文本或文件编码为Base64,并将Base64字符串解码为可读文本
URL编码/解码
编码和解码URL组件和查询字符串参数
UUID生成器
生成随机UUID(v1、v4)或批量生成多个UUID
哈希生成器
从文本或文件生成MD5、SHA-1、SHA-256、SHA-512哈希
正则表达式测试器
实时匹配高亮测试正则表达式并提取分组
JWT解码器
解码和检查JSON Web Token — 查看header、payload并验证签名
HTML格式化工具
使用正确缩进和语法高亮格式化和美化HTML代码