Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with Middleware

  • Restrict IP Address ASP.NET Core Web API

    There are several ways to restrict access to a Web server based on the requestor’s IP address.  We can do that from IIS or using inbound Firewall rules. But If you want to restrict access to one of the application deployed in the server based on the IP Address then you have to achieve that programmatically.  In this post, i will guide you on how to restrict IP address in ASP.NET Core