dustinmoris / Firewall

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

Block Specific Hosts #6

Open bbqchickenrobot opened 5 years ago

bbqchickenrobot commented 5 years ago

Would be great to allow an exclusion style lists as well. Say something like:

DontAllow(List\<CIDRs>); DontAllow(List\<IPAddress>); DontAllow(List\<CountryCode>);

Right now, if I want to allow every country, say, except for Micronesia I have to list EVERY country but Micronesia. Same thing if I want to only block a few IPs... That said - great library!!! Thanks for your work!

dustinmoris commented 5 years ago

Ok, could add a few options to exclude certain IPs/CIDRs or countries. I'll provide an update soon on this.