saascity / contao-ai-robots-bundle
Contao CMS 5 bundle hooking contao.robots_txt to manage AI search and training crawler directives (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot).
Package info
github.com/nyyhao/contao-saascity-ai-robots
Type:contao-bundle
pkg:composer/saascity/contao-ai-robots-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^4.13 || ^5.0
- symfony/config: ^5.4 || ^6.4 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.0
- symfony/event-dispatcher: ^5.4 || ^6.4 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.0
- webignition/robots-txt-file: ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
Replaces
None
README
A clean Contao CMS 4.13 / 5.x bundle (saascity/contao-ai-robots-bundle) that listens to contao.robots_txt (ContaoCoreEvents::ROBOTS_TXT) and appends structured, deduplicated robots.txt directives for major AI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Applebot-Extended, Bytespider).
Want to design and test your AI crawler ruleset visually first? Use the free SaaSCity Robots.txt Generator.
Features
- Native Contao Manager Plugin: auto-registers
SaaSCityContaoAiRobotsBundleafterContaoCoreBundle - Hooks
contao.robots_txt: appends records cleanly viawebignition/robots-txt-filewithout overwriting root-page custom instructions - Deduplication-aware: skips any
User-agentalready defined in your Contao root pagerobots.txt - Configurable presets & per-bot overrides in
config/config.yaml
Installation
composer require saascity/contao-ai-robots-bundle
Clear the Symfony cache:
vendor/bin/contao-console cache:clear
Configuration
Optional configuration in config/config.yaml:
saascity_contao_ai_robots: enabled: true # Options: allow-search-block-training | allow-all | block-all preset: allow-search-block-training disallow_paths: - /contao/ - /_contao/ overrides: ClaudeBot: allow Bytespider: block
Presets
| Preset | AI Search Bots (OAI-SearchBot, ChatGPT-User, PerplexityBot) |
AI Training Bots (GPTBot, ClaudeBot, Google-Extended, CCBot, Applebot-Extended, Bytespider) |
|---|---|---|
allow-search-block-training (default) |
Allowed (except disallow_paths) |
Disallowed (/) |
allow-all |
Allowed (except disallow_paths) |
Allowed (except disallow_paths) |
block-all |
Disallowed (/) |
Disallowed (/) |
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.