Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Autentication & .htm extentions.

Status
Not open for further replies.

Caradog

Programmer
Jun 28, 2000
73
0
0
GB
Hi, I'm using forms authentication for a project and it works great with any .net pages, but I also have mixed media in the directories I need to protect, such as .htm, .asp, .gif, .swf etc, But forms autentication doesn't work on these files. Is it possible to make it work?
 
Ah..I've just answered it myself...

1. Open the IIS Control Panel (inetmgr from command prompt)
2. Expand the appropriate nodes and select the Virtual Directory of the application which needs authentication.
3. Right click on the Virtual Directory and select Properties.
4. Click the Configuration Tab
5. A dialog box appears with the list of file extensions.
6. Click Add and a dialog appears asking for URL with browse button and a textbox where the extension type to be entered.
7. Click on the Browse button and select the the following path
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
8. Enter the extension type in the textbox such as .pdf, .doc etc.,
9. Select the "Limit to" radio button and Put the same properties as like for aspx files i.e. GET, HEAD, POST, DEBUG
10. Click ok - ok. Repeat the same for other file extension types which you want to secure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top