免费Robots.txt生成器
轻松创建正确的robots.txt文件来控制搜索引擎抓取。优化SEO,保护私有内容。
Quick Presets
Search Engine Crawlers
AI Crawlers
2026Control which AI bots can crawl your site for training data. Blocking these does NOT affect your search rankings.
Blocked Directories
Custom Paths
Advanced Settings
Seconds between requests. Only Bing and Yandex honor this. Google ignores it — use Search Console instead.
您的Robots.txt
29 active rules
# robots.txt generated by Kleap - 2026-06-21 # https://kleap.co/tools/robots-txt-generator User-agent: * Disallow: /admin/ Disallow: /api/ Disallow: /private/ # AI Crawlers User-agent: GPTBot Disallow: / User-agent: ChatGPT-User Disallow: / User-agent: Google-Extended Disallow: / User-agent: Claude-Web Disallow: / User-agent: PerplexityBot Disallow: / User-agent: CCBot Disallow: / User-agent: Bytespider Disallow: / User-agent: Amazonbot Disallow: / User-agent: FacebookBot Disallow: / User-agent: anthropic-ai Disallow: / User-agent: cohere-ai Disallow: /
How to use this file
Upload this file to the root of your website so it is accessible at yoursite.com/robots.txt. Most hosting platforms (Vercel, Netlify, WordPress) have a public/ or root directory where you drop it. Changes take effect immediately — no restart required.
什么是Robots.txt?
robots.txt是放置在网站根目录的文本文件,指示搜索引擎爬虫可以抓取和索引网站的哪些部分。
正确的robots.txt配置是SEO的基础。可以防止不必要的页面被抓取,优化抓取预算,排除私有内容。
Why Use Our Robots.txt Generator?
One-Click Presets
Choose from 6 presets: Allow All, Block All, Standard, E-commerce, WordPress, and Block AI Bots. Start with a template and customize from there.
AI Bot Controls
Block or allow 11 AI crawlers including GPTBot, Claude-Web, PerplexityBot, CCBot, and Bytespider. Most generators in 2026 still do not cover these.
Live Validation
See warnings in real-time when you make risky choices, like blocking Googlebot or disallowing your entire site. Prevent costly SEO mistakes before they happen.
Search Engine Controls
Granular control over Googlebot, Bingbot, Slurp (Yahoo), DuckDuckBot, Baiduspider, and YandexBot. Allow or block each crawler individually.
Sitemap Declaration
Add your sitemap URL directly in robots.txt so crawlers discover all your pages. This is a best practice recommended by Google and Bing.
Copy & Download
Copy to clipboard or download as a .txt file. Upload to your site root and you are done. No signup, no account, no limitations.
Why You Need to Control AI Bots in 2026
Since 2024, AI companies have deployed web crawlers that scrape websites to train large language models. GPTBot (OpenAI), Claude-Web (Anthropic), PerplexityBot, CCBot (Common Crawl), Bytespider (ByteDance/TikTok), and others now crawl billions of pages. Unlike search engine crawlers that drive traffic to your site, AI crawlers take your content to train models — without sending visitors back.
Blocking AI bots in your robots.txt is the most effective way to prevent your content from being used for AI training. Major publishers like The New York Times, CNN, and Reuters have already added these blocks. The important distinction: blocking AI bots does NOT affect your Google or Bing rankings. Search engine crawlers and AI crawlers are separate user agents.
Our generator includes 11 known AI crawler user agents, updated for 2026. As new AI crawlers emerge, we add them. This is one of the few robots.txt generators that covers AI bots comprehensively — most competitors still only handle traditional search engine crawlers.
如何实施Robots.txt
正确实施robots.txt的方法。
放置到根目录
将生成的文件上传到网站根目录。
测试和验证
使用Google Search Console验证功能。
定期审查
网站结构变更时更新robots.txt。
4. Monitor and Update
Review your robots.txt quarterly. New AI bots emerge regularly — add their user agents as they appear. If you add new sections to your site (like /api/ or /admin/), make sure they are blocked. Check Search Console for crawl errors that might indicate robots.txt misconfiguration.
Robots.txt生成器:Kleap vs 替代方案
| 功能 | Kleap | SEOptimer | SmallSEOTools |
|---|---|---|---|
| 价格 | 完全免费 | 免费 | Free with ads |
| AI Bot Controls | 11 AI crawlers (GPTBot, Claude, etc.) | None | None |
| 预设 | 4个预设 | 无 | None |
| Live Warnings | Real-time validation warnings | Basic syntax check | No validation |
| Download .txt | Copy + Download | Copy only | Copy only |
| No Signup Required | Yes | Yes | Yes |