saascity / neos-ai-robots
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
Type:neos-package
pkg:composer/saascity/neos-ai-robots
Requires
- php: ^8.1
- guzzlehttp/psr7: ^2.0
- neos/flow: ^8.3 || ^9.0
- neos/neos: ^8.3 || ^9.0
- psr/http-message: ^1.1 || ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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 keySaaSCity.AiRobots) - PSR-15 Flow HTTP Middleware: automatically wired before
routingto serve or merge/robots.txt - Injectable
AiRobotsGeneratorsingleton service: also usable directly from custom Fusion helpers or controllers - Non-destructive merge mode: respects existing
robots.txtoutput (e.g. fromNeos.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
- 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.