I have a virtual directory that's protected with basic authentication. I'd like to disable authentication for certain IPs, so that all requests from e.g. 127.0.0.1 are allowed without asking for credentials. How can I do this?
I was unable to find a built-in way to make this happen. I ended up writing an IIS module using the instructions at http://learn.iis.net/page.aspx/170/developing-a-module-using-net/.
The module checks the client's IP address (using
Stumbling blocks included: