Bypass IIS Basic Authentication for localhost

Posted by George on Server Fault See other posts from Server Fault or by George
Published on 2013-11-05T01:25:43Z Indexed on 2013/11/05 3:59 UTC
Read the original article Hit count: 440

I'd like to have a website authenticated with basic auth, but then also allow the website to access itself locally. That is, I want to allow unauthenticated access only from localhost.

In IIS I have only basic authentication enabled (not worrying about SSL for now), and I have the correct file system permissions such that outside users can login successfully and view the website.

I have tried setting IIS_IUSR as owner of the directory, and added IUSR with modify permissions, however I'm still getting a 401 error when the website tries to access itself.

Anyone have any idea how to get this to work?

© Server Fault or respective owner

Related posts about iis

Related posts about localhost