Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Firefox bypass form authorization for doc/pdf files?

Reply
Thread Tools

Firefox bypass form authorization for doc/pdf files?

 
 
=?Utf-8?B?bmljaw==?=
Guest
Posts: n/a
 
      07-03-2006
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\aspn et_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?
 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      07-04-2006
> 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\aspn et_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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox Extension to Bypass SOPA Restrictions karlaserv Media 0 12-29-2011 05:22 AM
URL Authorization does not override File Authorization? SeanRW ASP .Net Security 1 05-25-2006 06:18 AM
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome? NotGiven Javascript 3 05-13-2004 12:15 AM
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome? NotGiven ASP General 3 05-13-2004 12:15 AM
Form Authorization Ticket Not Expiring chongo ASP .Net 1 04-28-2004 03:53 AM



Advertisments