Skip to content
An ASP.NET Core Robots.txt Middleware
C# HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RobotsTxt.Sample
RobotsTxt Initial Commit Sep 28, 2019
.gitignore
LICENSE
RobotsTxt.sln Initial Commit Sep 28, 2019
readme.md

readme.md

Robots.Txt Middleware

An ASP.NET Core Robots.txt middleware for the SEO conscientious.

Read more about it at https://khalidabuhakmeh.com/robotstxt-middleware-aspnet-core

Getting Started

You will need the .NET Core 3.0 SDK from https://dot.net.

Register the middleware passing in the required parameters and then include robots.txt files based on your environment at the rootpath provided.

robots.txt
robots.Development.txt
robots.Staging.txt
robots.Production.txt

That's it! Your environment specific robots.txt should be served accordingly.

Social

Also follow me on GitHub and on Twitter.

Cheers :)

Remember to #Hacktoberfest

You can’t perform that action at this time.