dustinmoris / Firewall

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

Block Traffic by Country #1

Closed NicoCG closed 5 years ago

NicoCG commented 5 years ago

Hi @dustinmoris ,

Could you kindly provide an example (sample) of Block Traffic by Country and storing configuration in appsettings.json

How to Block Traffic by Country in the CSF Firewall

It will be a cool feature to add 👍

dustinmoris commented 5 years ago

Hi,

There is currently no feature to block traffic by country. It's certainly something that can be added though (wondering why that would be useful though) and an example how to load settings form the appsettings.json is something I'll add over the weekend!

NicoCG commented 5 years ago

Thanks @dustinmoris, Blocking countries would be useful because I do not want everyone to use my application.

dustinmoris commented 5 years ago

I've published a new version which has many improvements and also the capability to filter requests based on the origin country.

NicoCG commented 5 years ago

@dustinmoris Thank you