We have an existing asp.net webform (.net 4) application runnning in production. Recently the users have requested a new page be built, but that page they want only accessible through 1 ip address. Can someone guide me on how to do this? I've seen online ip restrictions at the IIS level, but I don't want to restrict the entire application as it should remain open to all, just that one page should be restricted.
Getting the users' ip I saw I can use the sample from How to get a user's client IP address in ASP.NET?
But is the only way then to restrict it to do a test if returnedIP == "xx.xxx.x.x" or is there a better way to handle this?