Search by

saascity / bolt-ai-robots

nyyhao

Bolt CMS 5 extension that generates and serves clean AI crawler robots.txt directives (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot) with YAML preset configuration.

Package info

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

Homepage

Documentation

Type:bolt-extension

pkg:composer/saascity/bolt-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 lightweight Bolt CMS 5 extension (saascity/bolt-ai-robots) that generates and 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 protecting /bolt/ and /thumbs/.

Build and preview your AI crawler directives visually with the free SaaSCity Robots.txt Generator.

Features

  • Native Bolt 5 Extension (type: bolt-extension, entrypoint SaaSCity\BoltAiRobots\Extension)
  • Zero-config default policy with YAML overrides in config/extensions/saascity-boltairobots.yaml
  • Reusable RobotsBuilder service with non-destructive mergeWithExisting() helper
  • Three built-in presets: allow-search-block-training (default), allow-all, and block-all

Installation

composer require saascity/bolt-ai-robots

Copy the default configuration if you want to customize presets or per-bot overrides:

php bin/console bolt:copy-themes
# or edit config/extensions/saascity-boltairobots.yaml directly

Configuration

config/extensions/saascity-boltairobots.yaml:

enabled: true
preset: allow-search-block-training
disallow_paths:
  - /bolt/
  - /thumbs/
sitemap_url: 'https://example.com/sitemap.xml'
overrides:
  ClaudeBot: allow
  Bytespider: block

Note: remove or rename any static public/robots.txt file if you want Bolt's RobotsTxtSubscriber to serve /robots.txt dynamically.

Related Free SEO & Launch Tools

License

MIT License. See LICENSE for details.