This package implements a piece of ASP.NET Core middleware, rick rolling anyone requesting invalid URLs. The code is inspired by this tweet:
🙃 Make sure to rickroll people trying to break into your site pic.twitter.com/4cd80Pr9p9
— Liam Hammett (@LiamHammett) May 14, 2020
Install the RickrollingMiddleware
NuGet package:
PM> Install-Package RickrollingMiddleware
Call UseRickrolling
in the Configure
method:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// ...
app.UseRickrolling();
// ...
}