Protect Website Folders via Web.config

If you would like to configure password protect for some of your website folders you can do it via web.config directly instead disable the anonymous access on IIS. Just make a new web.config in that folder and paste into the following

        <add accessType="Deny" users="?" />

You can configure the specific user from the folder permissions.


- has written 121 posts.

Leave a Reply

You must be logged in to post a comment.