Implementing and Testing IP SafeLists in ASP.NET Core

How to implement and test IP restrictions in an ASP.NET Core Web API project

Changhui Xu
codeburst
Published in
6 min readMar 14, 2021

--

We sometimes want to limit our application to only certain IP addresses or IP network ranges. For example, during beta testing, we prefer to only allow admins and preselected testers to access the new website. Besides blocking the whole…

--

--

Lead Application Developer. MBA. I write blogs about .NET, Angular, JavaScript/TypeScript, Docker, AWS, DDD, and many others.