[C#/OWIN] Where can I create list of banned IP addresses and preload it from SQL for the duration of application?
3 29 Nov 2015 06:55 by u/Karmadilla
I was thinking of putting it in Startup class and making the field static. Loading it somewhere in the Configuration() and then wiring up middleware to it.
2 comments
1 u/roznak 29 Nov 2015 13:44
The design of your application depends on what you want tot do with it. There is no single answer.
1 u/xaric 29 Nov 2015 20:09
Nowhere. As soon as you start checking a client's IP Address against a list, you are crippling your application's ability to scale as well as incur a performance hit on every connection.
Move this to a router/firewall.