承接 innomedia/silverstripe-robots-txt 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

innomedia/silverstripe-robots-txt

Composer 安装命令:

composer require innomedia/silverstripe-robots-txt

包简介

A modern, dynamic robots.txt module for SilverStripe

README 文档

README

A modern, dynamic robots.txt module for SilverStripe that works correctly with multi-domain, multilingual, and Subsites-based setups.

Features

  • Dynamic Generation: robots.txt and llms.txt are generated on-the-fly, allowing for host-specific rules.
  • Automatic Exclusions: Automatically disallows pages where ShowInSearch is set to false in robots.txt.
  • Integration with SEO Sitemap: If wilr/silverstripe-googlesitemaps is installed, it can automatically include a Sitemap: directive and respect its exclusion rules.
  • LLMs.txt Support: Generates an llms.txt file for Large Language Models.
  • AI-Powered Summaries: Automatically generates page summaries for llms.txt using GPT (OpenAI).
  • Elemental Support: Correctlty extracts content from Elemental areas for AI processing.
  • CMS Configurable: Editors can manage all settings via SiteConfig.
  • Sensible Defaults: Comes with a pre-configured set of common blocked paths (e.g., /cms/, /resources/).
  • Developer Friendly: Highly extensible via an interface-based provider system.

Installation

composer require innomedia/silverstripe-robots-txt

Configuration

CMS Settings

Robots.txt

Under Settings > Robots.txt, you can:

  • Toggle default disallowed paths (technical paths like /cms/).
  • Toggle automatic exclusion of ShowInSearch = false pages.
  • Toggle Sitemap module integration (excludes pages that are not in the sitemap).
  • Toggle Sitemap reference line.
  • Add raw custom robots.txt lines.

LLMs.txt

Unter Settings > LLMs.txt (oder Einstellungen > LLMs.txt), können Sie:

  • Eine allgemeine Seitenbeschreibung angeben.
  • Kontaktinformationen für die llms.txt hinterlegen.
  • Ihren OpenAI API Key für die Generierung von Zusammenfassungen hinterlegen.
  • Bis zu 10 Kapitel definieren, jeweils mit einem Titel und einer Auswahl relevanter Seiten.
  • Das System ruft beim Speichern automatisch die Inhalte ab (inklusive Elemental-Blöcken) und generiert KI-Zusammenfassungen via GPT.

Die llms.txt wird nach einem modernen Standard formatier inkl. Seitentitel, Beschreibung als Zitat, Sitemap-Link und Kontaktinfo.

YAML Configuration

You can override the default blocked paths or add your own disallow providers:

Innomedia\RobotsTxt\Builders\RobotsTxtBuilder:
  default_disallowed_paths:
    - '/cms/'
    - '/resources/'
    - '/my-custom-blocked-path/'
  disallow_sources:
    - 'Innomedia\RobotsTxt\Providers\ShowInSearchDisallowProvider'
    - 'MyCustom\Provider\DisallowProvider'

Extensibility

Custom Disallow Rules

Implement Innomedia\RobotsTxt\Interfaces\DisallowSourceInterface and register it in YAML:

namespace MyCustom\Provider;

use Innomedia\RobotsTxt\Interfaces\DisallowSourceInterface;

class DisallowProvider implements DisallowSourceInterface
{
    public function getDisallowedPaths(): array
    {
        return ['/private-area/'];
    }
}

Custom Sitemap Resolver

Implement Innomedia\RobotsTxt\Interfaces\SitemapResolverInterface and register it in YAML:

Innomedia\RobotsTxt\Builders\RobotsTxtBuilder:
  sitemap_resolver: 'MyCustom\Provider\SitemapResolver'

License

See LICENSE (BSD-3-Clause).

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-05-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固