Re: Securing files for download.

From: Petr PALAS (palas_at_atlas.cz)
Date: 12/12/03


Date: Fri, 12 Dec 2003 19:10:23 +0100

Hi Steve,

when you set the IIS to process all files using ASPNET_ISAPI.dll as it does
with ASPX files. Then you can check if user is authenticated and authorized
in the following event:

Sub Application_AcquireRequestState(ByVal sender As Object, ByVal e As
EventArgs)
'... your code ....
End Sub

You can find a more detailed description in the documentation of PortSight
Secure Access for .NET (you don't need the component to work this out:

http://www.portsight.com/downloads/SecureAccess/1_1/Standard/Secure%20Access%20Guide.chm

Best Regards,

Petr PALAS, petrp@portsight.com
PortSight - Portals & Components, www.PortSight.com

"Steve Lloyd" <steveRemoveThisNow@livenowpaylater.co.uk> wrote in message
news:OF9mizovDHA.2080@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I am trying to work out how I can secure files available for download on a
> website.
>
> I have forms authentication set and can deny access to aspx file in a
> directory using the web.config file which redirects to the login page and
> works fine, however, if i have a downloadable in this directory people can
> enter the URI of the file and download it without any login. I understand
> that the web.config approach only secures .Net based resources but would
> like to know if anyone has a solution/work around for this. I have
thought
> about storing the files in SQL which would require an aspx page to
> authenticate to the server, I think this would work but SQL space costs
much
> more than web space ..
>
> The webserver is a shared hosting solution so i do not have acces to the
> windows level accounts.
>
> Would appreciate some direction on this.
>
> Thanks very much
>
> Steve
>
>



Relevant Pages

  • Re: Error message when click save target as .....
    ... I'm trying to download my bank statement from Citibank. ... version has no problem but after installing XP SP2, ... > Internet Explorer was not able to open this Internet Site. ... > connection and client authentication. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: XP Key Authentication disabled Office 2003
    ... I purchased Office 2003 from Best Buy about six months ago. ... This also positive promotes open-source software, such as OpenOffice, where you can download and use the product without worrying about product activation problems. ... Authentication is not manditory, ...
    (microsoft.public.windowsxp.general)
  • Re: [PHP] How do I protect downloadable files?
    ... username and password for this inside a database. ... HTTP authentication. ... If so, start the download. ...
    (php.general)
  • Re: Need to restrict access to an EXE in IIS6
    ... it fails if I have it set to Integrated Windows Authentication. ... I then looked at the Default Web Site using IIS Manager, ... NTFS permissions so it remained downloadable for a short period of time ... download when I go to the web site. ...
    (microsoft.public.inetserver.iis.security)
  • Re: why authentication required downloading from microsoft
    ... when i try to download anything from ... a box appeared and asks me for authentication. ... antivirus program (meaning a version not earlier than 2002 and using ... Although CWShredder is no longer being updated, ...
    (microsoft.public.windowsxp.general)