Implementing a Client White-list using ASP.NET Core Middleware

added by DotNetKicks
12/18/2016 5:09:16 PM

2 Kicks, 531 Views

This article shows how a client white-list could be implemented using ASP.NET Core middleware checking the Remote IP address of the request. If the client IP is on the white-list, no restrictions exist. Code: https://github.com/damienbod/ClientIpAspNetCoreIIS The middleware uses an admin white-list parameter from the constructor to compare with the remote ip address from the HttpContext...


0 comments