Firefox bypass form authorization for doc/pdf files?

G

Guest

I have create a Asp.net 2.0 application empsite with form authorization.

And I have create an entry in IIS application mapping:
..doc => C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

I tried http://localhost/empsite/Documents/BenefitsSummary.doc on IE and it
will be redirected to login page.

However, it does't redirect to login page and the url can download the file
directly.

Did I missed any setting?
 
H

Hans Kesting

I have create a Asp.net 2.0 application empsite with form authorization.
And I have create an entry in IIS application mapping:
.doc => C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

I tried http://localhost/empsite/Documents/BenefitsSummary.doc on IE and it
will be redirected to login page.

However, it does't redirect to login page and the url can download the file
directly.

Did I missed any setting?

Don't know why IIS handles FF-requests differently from IE-requests.

A different approach would be not to use direct links to your
docs/pdfs, but to use something like
download.aspx?file=BenefitsSummary.doc

This download.aspx could perform extra security checks. If everything
is OK, then it can do a Response.WriteFile() to upload the file (which
is stored in a directory outside of the website, so no direct requests
are possible) to the requesting browser.
Note: you don't want any html in the "aspx" part.

Hans Kesting
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top