02 July 2007

How to password protect a virtual directory in IIS?

Create a virtual directory in IIS
Create a user in the system. Right click on “My Computer” > Manage > Create a user

Go to IIS

Right click on your virtual directory that you want to protect with password.

Go to “Directory Security” tab > Edit Anonymous access and authentication control
Ø Deselect “Anonymous Access” check box
Ø Select basic authentication password checkbox
Ø Set “Yes” for prompted message box.
Ø No need to go in its “Edit” button.

1 comment:

Bernard said...

Remember that the NTFS Security of the Folder and Files in it, also plays a role.

To "disable" NTFS security, just add "Everyone" as ons of the users under the security tab, and give him full access.