🤖 robots.txt 构建器 — 创建爬虫规则
Build a robots.txt file visually. Add allow/disallow rules, block AI crawlers (GPTBot, CCBot), set crawl delay. Download instantly. Free online robots.txt generator.
Use the visual rules builder to add User-agent directives, allow/disallow paths, and optionally set a crawl delay. One-click presets for Allow All, Block All, Block AI Bots (GPTBot, CCBot, anthropic-ai), and SEO-Friendly configurations. Download the finished file.
How to Use
Choose a preset
Start with a preset: Allow All, Block All, Block AI Bots (GPTBot, ClaudeBot, etc.), or SEO-Friendly.
Customize the rules
Add or remove User-agent rules and Disallow/Allow paths using the rule builder below the presets.
Download your file
Add your sitemap URL (optional), then click Download to save your robots.txt file.
Frequently Asked Questions
完整指南:Robots.txt生成器
什么是robots.txt?
robots.txt告诉搜索引擎爬虫哪些部分可以抓取。这只是建议——不是安全机制。用于排除管理页面、内部搜索结果和API端点。
如何使用
- 按用户代理定义规则(Googlebot、
*代表全部)。 - 添加Disallow路径。
- 在末尾包含网站地图URL。
- 上传到域名根目录。
专业技巧
Disallow: /封锁整个网站——部署前仔细检查。- 用robots.txt封锁不会删除已索引的页面——使用
noindex。 - Google忽略
Crawl-delay——使用Search Console限制爬取速度。