Firewall icon indicating copy to clipboard operation
Firewall copied to clipboard

MVC sample

Open NicoCG opened this issue 6 years ago • 2 comments

@dustinmoris, Please can you upload a MVC sample to this repository? If country or IP address is not allowed show blocked error page. if allowed IP continue to home page 👍

NicoCG avatar Oct 28 '18 22:10 NicoCG

I have just released a new version which allows you to configure a RequestDelegate for blocked requests. This can be used to configure your own blocked error page regardless if you use MVC or a different ASP.NET Core framework.

Check the README for more information.

If you want you can send a PR for an MVC sample, but in terms of this library nothing would change between a plain ASP.NET Core application and an MVC application.

dustinmoris avatar Oct 29 '18 22:10 dustinmoris

Thanks

NicoCG avatar Oct 30 '18 22:10 NicoCG