dustinmoris / Firewall

ASP.NET Core middleware for IP address filtering.
Apache License 2.0
223 stars 35 forks source link

MVC sample #2

Open NicoCG opened 5 years ago

NicoCG commented 5 years ago

@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 👍

dustinmoris commented 5 years ago

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.

NicoCG commented 5 years ago

Thanks