saascity / bolt-ai-robots
Bolt CMS 5 extension that generates and serves clean AI crawler robots.txt directives (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot) with YAML preset configuration.
Package info
github.com/nyyhao/bolt-saascity-ai-robots
Type:bolt-extension
pkg:composer/saascity/bolt-ai-robots
Requires
- php: ^8.1
- bolt/core: ^5.0
- symfony/event-dispatcher: ^5.4 || ^6.4
- symfony/http-foundation: ^5.4 || ^6.4
- symfony/http-kernel: ^5.4 || ^6.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A lightweight Bolt CMS 5 extension (saascity/bolt-ai-robots) that generates and serves clean, RFC 9309 compliant robots.txt directives for AI search and training crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Applebot-Extended, Bytespider) while protecting /bolt/ and /thumbs/.
Build and preview your AI crawler directives visually with the free SaaSCity Robots.txt Generator.
Features
- Native Bolt 5 Extension (
type: bolt-extension, entrypointSaaSCity\BoltAiRobots\Extension) - Zero-config default policy with YAML overrides in
config/extensions/saascity-boltairobots.yaml - Reusable
RobotsBuilderservice with non-destructivemergeWithExisting()helper - Three built-in presets:
allow-search-block-training(default),allow-all, andblock-all
Installation
composer require saascity/bolt-ai-robots
Copy the default configuration if you want to customize presets or per-bot overrides:
php bin/console bolt:copy-themes
# or edit config/extensions/saascity-boltairobots.yaml directly
Configuration
config/extensions/saascity-boltairobots.yaml:
enabled: true preset: allow-search-block-training disallow_paths: - /bolt/ - /thumbs/ sitemap_url: 'https://example.com/sitemap.xml' overrides: ClaudeBot: allow Bytespider: block
Note: remove or rename any static public/robots.txt file if you want Bolt's RobotsTxtSubscriber to serve /robots.txt dynamically.
Related Free SEO & Launch Tools
- SaaSCity — SaaS directory, visibility, and launch tools
- Free Robots.txt Generator — Interactive builder for AI & search crawler directives
- Domain Rating Checker — Check domain authority and backlink readiness
- SaaSCity MCP Server — Connect AI agents directly to SaaSCity launch & SEO tools
License
MIT License. See LICENSE for details.