Use forms authentication to protect non-aspx files?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

In my ASP.NET 2.0 Web app, I want to make some files inaccessible to
unauthenticated users. Using Forms Authentication, this works fine for
..aspx pages, but not for regular old .htm pages. How do I protect these?



Thanks,

Ron
 
From what I'm finding so far, I can somehow configure IIS "ISAPI filter" to
include file types that I want to protect under forms authentication.



Does anyone know how to do this? In IIS I see the ISAPI Filters tab, but it
doesn't just ask me to list the extensions I'd want to protect. Instead it
seems to want me to browse to a dll or something.



Thanks,

Ron
 
From what I'm finding so far, I can somehow configure IIS "ISAPI filter" to
include file types that I want to protect under forms authentication.

Actually, you want the Home Directory Tab, then click the Configuration
button.
 
Thanks Erik, but the OK button on that tab never enables.. even after I
point to that isapi DLL and type .htm in the other field. No matter what I
do the OK button is still disabled.

Thanks for any additional help.

Ron
 
Thanks Erik, but the OK button on that tab never enables.. even after I
point to that isapi DLL and type .htm in the other field. No matter what I
do the OK button is still disabled.

Weird. It enables for me as soon as i start typing in the executable
field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top