Search by

saascity / mautic-ai-robots-bundle

nyyhao

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

Homepage

Documentation

Type:mautic-plugin

pkg:composer/saascity/mautic-ai-robots-bundle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-28 13:51 UTC

This package is auto-updated.

Last update: 2026-11-28 14:03:52 UTC


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 into plugins/SaaSCityAiRobotsBundle)
  • Symfony Kernel subscriber (RobotsSubscriber) serving /robots.txt with text/plain; charset=utf-8 and 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, and block-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

License

MIT License. See LICENSE for details.