- Home
- Skills
- Marketing & SEO
- robots.txt Builder & Tester: Control AI Crawlers like GPTBot
Works with the AI Agents you already use
robots.txt Builder & Tester: Control AI Crawlers like GPTBot
Decides which AI and search crawlers to allow, then builds and tests robots.txt: block training bots like GPTBot while keeping AI search citations, with an allow/block matrix on Google's matching rules and a lint.
Free
robots.txt Builder & Tester: Control AI Crawlers like GPTBot
Example session with this skill installed
Block all AI training bots including GPTBot and ClaudeBot, but allow AI search bots to cite my blog. Keep /account private. Sitemap is https://example.com/sitemap.xml.
- Read your context and instructions
- Compiled the robots txt builder
I have generated a robots.txt policy that prioritizes AI search visibility while opting out of model training.
AI Crawler Access Strategy
POLICY
- Goal: Opt-out of training, opt-in for search citations.
Allow: Search engines (Googlebot, Bingbot), AI Search (OAI-SearchBot, Claude-SearchBot, Perplexity-SearchBot), User Fetchers (ChatGPT-User).
- Block: Training bots (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot).
Reasons: Blocking GPTBot prevents training data collection while allowing OAI-SearchBot keeps the site eligible for citations in ChatGPT.
ROBOTS.TXT
User-agent: *
Disallow: /account
Sitemap: https://example.com/sitemap.xml
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Applebot-Extended
Disallow: /
TEST MATRIX
| Path | Googlebot | GPTBot | OAI-SearchBot | ClaudeBot |
|---|---|---|---|---|
| / | ALLOW | BLOCK | ALLOW | BLOCK |
| /blog/post | ALLOW | BLOCK | ALLOW | BLOCK |
| /account | BLOCK | BLOCK | BLOCK | BLOCK |
LINT FIXES
- Verified: No
Disallow: /in the default group. - Verified: No
Noindex:directives found. - Verified: CSS/JS paths are not obstructed by specific agent blocks.
LIMITS
- Robots.txt is a request. Malicious crawlers may ignore these rules.
- Google AI Overviews are controlled via
nosnippettags, not Google-Extended.
Next steps
- Upload the generated robots.txt to
https://example.com/robots.txt. - Run
python3 scripts/robots_test.py test --url https://example.com/robots.txtin 24 hours to verify the live file. - Monitor your search console for any drop in crawl rate for your main content.
Connects securely to your tools. The creator never sees your data.
About this skill
Blocking "AI" in one line usually blocks the wrong thing: the crawlers that train models and the AI search crawlers that cite and link your site are separate bots. This skill sets a policy per bot, writes the robots.txt and shows exactly what it allows.
What it does
- Decision table: training crawlers (GPTBot, ClaudeBot, Google-Extended, CCBot and more), AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and user-triggered fetchers, with what blocking each one really changes.
- Current tokens: 19 search and AI crawler tokens checked against their operators' documentation, with old or misspelled tokens flagged.
- Builder: a standard-library Python script writes robots.txt from presets such as "block training, allow AI search", with your private paths and sitemap.
- Tester: tests any paths against any user agents with Google's longest-match rules, * and $ wildcards and Allow/Disallow precedence, and prints an allow/block matrix with the deciding rule.
- Lint: site-wide Disallow left from staging, blocked CSS and JS, missing Sitemap, Noindex lines Google ignores, unknown directives, BOM, full browser strings used as user agents.
- Honest limits: explains that robots.txt is a request, not enforcement, and that blocking does not remove data already collected.
How it works
- Paste or point to your robots.txt and say what you want from AI tools.
- Pick a policy from the decision table and build the file.
- Test the matrix, fix the lint, upload and re-test your live file.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Marketing & SEO.
robots.txt is a request; some crawlers and user-triggered fetchers may not follow it, and blocking does not remove data already collected. The tester follows Google's rules; other crawlers can read edge cases differently. It fetches only your own site's robots.txt when you use --url, and does not set up server or CDN blocking.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Accounts
Example
- Software
Python 3
Permissions
Allowed Hosts