Search by

saascity / neos-ai-robots

nyyhao

Neos CMS 8/9 package providing configurable AI crawler robots.txt generation and PSR-15 Flow HTTP middleware (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot).

Package info

github.com/nyyhao/neos-saascity-ai-robots

Homepage

Documentation

Type:neos-package

pkg:composer/saascity/neos-ai-robots

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


README

A clean Neos CMS 8.3 / 9.x Flow package (saascity/neos-ai-robots, package key SaaSCity.AiRobots) that generates and serves 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).

Design and preview your AI crawler directives interactively with the free SaaSCity Robots.txt Generator.

Features

  • Neos 8.3 & Neos 9 compatible (type: neos-package, Flow package key SaaSCity.AiRobots)
  • PSR-15 Flow HTTP Middleware: automatically wired before routing to serve or merge /robots.txt
  • Injectable AiRobotsGenerator singleton service: also usable directly from custom Fusion helpers or controllers
  • Non-destructive merge mode: respects existing robots.txt output (e.g. from Neos.Seo) and skips already-defined user-agents
  • YAML-configured presets & per-bot overrides in Configuration/Settings.yaml

Installation

composer require saascity/neos-ai-robots

Flush Flow caches:

./flow flow:cache:flush

Configuration

Customize in your site package's Configuration/Settings.yaml:

SaaSCity:
  AiRobots:
    enabled: true
    # Options: allow-search-block-training | allow-all | block-all
    preset: 'allow-search-block-training'
    appendToExisting: true
    disallowPaths:
      - '/neos/'
      - '/_Resources/Testing/'
    sitemapUrl: 'https://example.com/sitemap.xml'
    overrides:
      ClaudeBot: 'allow'
      Bytespider: 'block'

Programmatic Usage

Inject SaaSCity\AiRobots\Service\AiRobotsGenerator anywhere in your Neos/Flow package:

$robotsTxt = $this->aiRobotsGenerator->generate();

Related Free SEO & Launch Tools

License

MIT License. See LICENSE for details.