Search by

saascity / contao-ai-robots-bundle

nyyhao

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

Homepage

Documentation

Type:contao-bundle

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

Statistics

Installs: 1

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:02:01 UTC


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 SaaSCityContaoAiRobotsBundle after ContaoCoreBundle
  • Hooks contao.robots_txt: appends records cleanly via webignition/robots-txt-file without overwriting root-page custom instructions
  • Deduplication-aware: skips any User-agent already defined in your Contao root page robots.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

License

MIT License. See LICENSE for details.