Robots.txt 生成器和验证器

Create crawler rules, add sitemap directives, and validate robots.txt syntax locally before publishing the file at your website root.

就绪

验证结果

  • 生成或粘贴 robots.txt 内容,然后验证它。

爬虫规则生成

构建 User-agent、Allow、Disallow、Sitemap 和可选的 Host 指令,而无需记住 robots.txt 格式。

Syntax validation

检查常见错误,例如缺少 user-agents、相对站点地图 URL、格式错误的路径、重复规则和不支持的指令名称。

私有本地处理

生成器和验证器在您的浏览器中运行。Robots.txt 内容不会上传到 Convertr 服务器。

Frequently asked questions

我的 robots.txt 文件是否已上传以进行验证?

No. Generation and validation run in your browser with JavaScript. The text you enter is not sent to Convertr servers.

我应该将 robots.txt 放在哪里?

将 robots.txt 放在其适用的主机的根目录中,例如 https://example.com/robots.txt。

robots.txt 是否会从 Google 中删除页面?

否。Robots.txt 控制爬虫访问。如果您需要取消索引,请在页面上使用 noindex 指令或删除该页面。