saascity / mautic-ai-robots-bundle
Mautic 5 marketing automation plugin serving clean AI crawler robots.txt directives (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot) while safeguarding admin and tracking routes.
Package info
github.com/nyyhao/mautic-saascity-ai-robots
Type:mautic-plugin
pkg:composer/saascity/mautic-ai-robots-bundle
Requires
- php: ^8.1
- mautic/core-lib: ^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 Mautic 5 plugin (saascity/mautic-ai-robots-bundle) that 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 keeping Mautic admin (/s/), API (/api/), tracking (/mtc), and redirect (/r/) routes disallowed.
Want to customize and preview your AI crawler ruleset before deploying? Try the free SaaSCity Robots.txt Generator.
Features
- Composer-native Mautic 5 plugin (
type: mautic-plugin, installs directly intoplugins/SaaSCityAiRobotsBundle) - Symfony Kernel subscriber (
RobotsSubscriber) serving/robots.txtwithtext/plain; charset=utf-8and sensible cache headers - Protects sensitive Mautic endpoints (
/s/,/api/,/mtc,/r/) while letting public Mautic landing pages be indexed by permitted AI search bots - Three presets:
allow-search-block-training(default),allow-all, andblock-all
Installation
composer require saascity/mautic-ai-robots-bundle
Clear cache and reload plugins:
rm -rf var/cache/*
php bin/console mautic:plugins:reload
Configuration
Override defaults in config/local.php:
$parameters = [ // ... existing Mautic parameters ... 'saascity_ai_robots_enabled' => true, 'saascity_ai_robots_preset' => 'allow-search-block-training', 'saascity_ai_robots_disallow_paths' => '/s/,/api/,/mtc,/r/', 'saascity_ai_robots_sitemap_url' => 'https://marketing.example.com/sitemap.xml', ];
Note: if your web server serves a static docroot/robots.txt file directly, remove or rename the static file so /robots.txt routes through Mautic's front controller.
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.