Claude-Code User-Agent & Blocking Rules
Operated by Anthropic. Verify the official user-agent string and safety status for this bot. Use the tools below to run a live crawlability test and get copy-paste robots.txt rules to manage its access. Crawler info last updated on .
What is Claude-Code?
Terminal-based agent for deep site and system management.
Test if Claude-Code can access your URL
Enter URL to test if Claude-Code is allowed or blocked.
Is Claude-Code safe?
Yes, Claude-Code is considered safe.
This bot is verified and generally respected by the SEO community.
For more information about our safety badges, visit our documentation.
User-Agent String used by Claude-Code
Claude-CodeHow to block Claude-Code with robots.txt?
Add the following standard robots.txt rule to prevent Claude-Code from accessing your site.
User-agent: Claude-Code Disallow: /
What happens if I block Claude-Code?
Low Impact
Blocking Claude-Code will only prevent AI training on your content. This will NOT affect your search engine rankings or website traffic. Safe to block if you want to opt-out of AI training.
Common use cases for Claude-Code
Understanding how Claude-Code is typically used can help you make informed decisions about whether to allow or block it on your website.
- Collects web content for AI model training
- Gathers data to improve language understanding
- Scrapes text, code, and other content for datasets
- May be used for chatbot and AI assistant development
- Typically does NOT affect search engine rankings