BlendInteractive.Umbraco.RobotsTxt 17.0.0

Prefix Reserved
dotnet add package BlendInteractive.Umbraco.RobotsTxt --version 17.0.0
                    
NuGet\Install-Package BlendInteractive.Umbraco.RobotsTxt -Version 17.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlendInteractive.Umbraco.RobotsTxt" Version="17.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlendInteractive.Umbraco.RobotsTxt" Version="17.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlendInteractive.Umbraco.RobotsTxt" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlendInteractive.Umbraco.RobotsTxt --version 17.0.0
                    
#r "nuget: BlendInteractive.Umbraco.RobotsTxt, 17.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlendInteractive.Umbraco.RobotsTxt@17.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlendInteractive.Umbraco.RobotsTxt&version=17.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BlendInteractive.Umbraco.RobotsTxt&version=17.0.0
                    
Install as a Cake Tool

Blend Interactive - Umbraco - RobotsTxt

License: MIT NuGet version (BlendInteractive.Umbraco.RobotsTxt)

This is a lightweight package that enables /robots.txt root of the umbraco website. This package is configured using appSettings.

Installation in Umbraco CMS


Command Line

donet add package BlendInteractive.Umbraco.RobotsTxt

Or Nuget

Install-Package BlendInteractive.Umbraco.RobotsTxt

Package Name Update

Previously the package was known as Our.Umbraco.Blend.RobotsTxt. The package name has been updated to BlendInteractive.Umbraco.RobotsTxt as of version 13.1.0. If you are using a version prior to 13.1.0, please continue to use the old package name.`

Setup


In the Startup.cs there is a configuration you need to add for /robots.txt path to render.

In the app.UseUmbraco() Under .WithEndpoints(u => add:

u.EndpointRouteBuilder.MapControllers();

This will use the route /robots.txt declared in the controller.

Default


If there are not any configurations in the appSettings.json file and environment is NOT Production, the default robots.txt will be:

User-agent: *
Disallow: /

If the environment is Production the default robots.txt will be:

User-agent: *
Allow: /

Configuration


In the root of your appSettings.json you can configure custom settings. You can also use appSettings.[Environment].json to have specific settings for every environment.

"Robots": [
    {
      "Sitemaps": [ "/sitemap.xml" ],
      "Groups": [
        {
          "UserAgent": "*",
          "Disallow": [ "/" ]
        },
        {
          "UserAgent": "Bingbot",
          "Allow": [ "/" ]
        }
      ]
    },
    {
      "Domains": [ "localhost:44393", "localhost:44395" ],
      "Sitemaps": [ "/sitemap.xml", "/another-sitemap.xml" ],
      "Groups": [
        {
          "UserAgent": "*",
          "Allow": [ "/" ]
        }
      ]
    }
  ]

Robots is an array of objects to be configured as needed to your use case.

Domains is an optional string array. Specify the domains that the group of robot options will apply to along with the sitemaps.

  • If left blank, the group will be classified as the default and will apply for all domains. If there are more than one that are default the first is used.

Sitemaps is an optional string array. If left blank will not include.

Groups is a required array of objects. Each object will discribe the robots.txt for the domains.


UserAgent is an optional string. If left blank will use *.

Allow is an optional string array. Array of paths to allow.

Disallow is an optional string array. Array of paths not to allow.

If Allow and Disallow are both empty, will set to Allow: /

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
17.0.0 77 1/16/2026