Take advantage of middleware in ASP.NET Core 6 to check the remote IP address of every request, and allow requests only from known and trusted addresses. When working with applications in ASP.NET Core ...
Is there an easy way (like via a .Net library) that allows me to get the IP address and subnet mask of the local machine that the application is running on?
I present a piece of ASP/VBScript code (feel free to use it if it would help you). This code can compare an IP address to a range of addresses and return TRUE if the ip in question is within the range ...