Free, open-source add-on for Optimizely CMS

Stott Robots Handler

Manage robots.txt content, llms.txt content and environment robots meta tags and headers from inside Optimizely CMS, without a code deployment.

dotnet add package Stott.Optimizely.RobotsHandler

Get started View on GitHub

The modal view for maintaining llms.txt files in Stott Robots Handler
Editing llms.txt content in the Robots Handler.
nuget.org downloads
View on NuGet
Optimizely feed downloads
View on the Optimizely feed
Latest version
View on NuGet
Licence
MIT

About the add-on

Stott Robots Handler is an Add-on for Optimizely CMS that allows a CMS Administrator to manage robots.txt content, llms.txt content and environment robots meta tag and header overrides without requiring a code deployment. This Add-on is free to use and is covered by an MIT License. If you wish to support the ongoing development of this Add-on, then please feel free to buy me a coffee.

Edition

Key features

01

Robots.txt Management

  • User Friendly Interface: Manage robots.txt content across your whole CMS without a code deployment.
  • Per Application & Host: Define distinct robots.txt content by application (site in CMS 12) and by specific host.
  • Smart Resolution: Requests to /robots.txt are matched to the correct application by domain, returning sensible default content when none has been configured.
Stott Robots Handler - Edit Modal
Editing robots.txt content for an application.
02

LLMS.txt Management

  • Familiar Interface: Manage Markdown llms.txt content in the same interface used for robots.txt, with a larger editor suited to longer files.
  • Per Application & Host: Configure llms.txt by application (site in CMS 12) and specific host, or as an application-wide default.
  • Served on Demand: Content is served on /llms.txt only when defined — matching a specific host first, then an application default, otherwise returning a 404.
The list view for maintaining llms.txt files in Stott Robots Handler
llms.txt content listed by application and host.
03

Optimizely Opal Tools

  • Conversational Management: Create and modify robots.txt and llms.txt content directly from Optimizely Opal’s chat interface.
  • Bearer Token Management: Issue multiple tokens, each with its own Read or Write scope for robots.txt and llms.txt.
  • Self-Describing: A built-in discovery endpoint registers the available tools with Opal.
  • Instruction Friendly: Pair the tools with Opal Instructions to generate rich llms.txt content tailored to your site.
A screenshot of the conversations with Opal regarding robots.txt content
Managing robots.txt content through a conversation with Opal.

Also included

Environment Robots

  • Protect Lower Environments: Override robots meta tags and response headers at an environment level to keep integration and preproduction environments out of search engines.
  • Global Configuration: Applied across the whole instance, independent of any application or host configuration.

Additional Features

  • Headless Support: APIs allow robots.txt and llms.txt content to be served and managed within headless solutions.
  • No Code Deployment: All content is managed by CMS administrators with no need for a code deployment.
  • Opti Id Ready: Configurable for use with Optimizely Opti Id.
  • CMS 12 & 13: Supports both Optimizely CMS 12 (Sites) and CMS 13 (Applications).
  • Free & Open Source: Released under the MIT licence.
  1. Install the package

    # .NET CLI
    dotnet add package Stott.Optimizely.RobotsHandler
    # Package Manager Console
    Install-Package Stott.Optimizely.RobotsHandler
  2. Register the services

    Add the following lines to the startup class of your solution.

    C# · Startup
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddRobotsHandler();
    }
    
    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        app.UseRobotsHandler();
    
        app.UseEndpoints(endpoints =>
        {
            endpoints.MapContent();
            endpoints.MapControllers();
        });
    }
    • services.AddRobotsHandler() sets up the dependency injection requirements for the Robots Handler.
    • app.UseRobotsHandler() sets up the middleware that creates the X-Robots-Tag header.
    • endpoints.MapControllers() ensures the routing for the administration page, assets and robots.txt is correctly mapped.
  3. Add it to your CMS menus

    Follow the installation guide on GitHub to add Robots Admin to your CMS menus and configure authorisation, then create the robots.txt content for each application.

Guides & release notes

Optimizely MVP Technology, Platinum

Built and maintained by Mark Stott, Platinum Optimizely MVP.

Free to use and covered by an MIT licence.

Get started Buy me a coffee Raise an issue