Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 962 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 962 Bytes

RickrollingMiddleware

CI Nuget

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

Usage

Install the RickrollingMiddleware NuGet package:

PM> Install-Package RickrollingMiddleware

Call UseRickrolling in the Configure method:

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    // ...

    app.UseRickrolling();

    // ...
}