Re: Allow file download only to subscribers

From: Paul Lynch (paul.lynch_at_nospam.com)
Date: 01/14/04


Date: Wed, 14 Jan 2004 13:15:56 +0000

On Wed, 14 Jan 2004 06:49:42 -0500, "John Kotuby"
<johnk@powerlist.com> wrote:

>I have created a site with ASP (Active Server Pages). That requires a login
>validated by an Access database. There is a file that I wish to be
>accessible for download only by registered subscribers. All my ASP pages
>check for the Userid/Password variables that I have set up, so a
>non-subscriber gets bumped back to the login if they try to navigate
>directly to a page other than the login. A subscriber with download rights
>sees a link on their page to the file. However, if a non-subscriber enters
>the exact path to the file, it gets downloaded anyway. I once tried a method
>that forces an FTP from the server, but some subscribers complained that
>they could not receive the file (firewall maybe?). How can I secure that
>file? I'm sure there is a simple way, but I haven't found it yet. Thanks for
>your help.
>

IIS has its own very powerful and flexible security model which you
can leverage to protect your web content. Using both IIS and
underlying NTFS permissions you can effectively lock down any content
on your server.

Read these KB articles :

HOW TO: Use NTFS Security to Protect a Web Page Running on IIS 4.0 or
5.0
http://support.microsoft.com/?id=299970

HOW TO: Configure Web Server Permissions for Web Content in IIS
http://support.microsoft.com/?id=313075

Or you can 'roll your own' :

How do I control access to an area?
http://www.aspfaq.com/show.asp?id=2114

Regards,

Paul Lynch
MCSE



Relevant Pages

  • Protecting Access Databases
    ... I am at a loss on what seeting I need in IIS to secure an Access Database so ... Download dialog which would allow them to save the DB on their disks. ...
    (microsoft.public.inetserver.iis)
  • Re: INETINFO.EXE
    ... As far as I am aware I do not have IIS installed nor do i run my home system ... not use my system as a server any way. ... > process if you are running Windows XP Professional and have IIS ... > direct download should not be trusted, the vendors sites are the safest ...
    (microsoft.public.windowsxp.security_admin)
  • Re: File download from IIS is very slow
    ... Have you verified via some other mechanism the actual download speed ... series of network connections of variety of speeds between the server and ... of all the network connections between them and the ... IIS can definitely download and upload as fast as possible -- see ...
    (microsoft.public.inetserver.misc)
  • Re: Cantt download "exe" file because of IIS version
    ... with IIS and can completely alter IIS behavior in arbitrary manners, ... cut out the EXE download and just standardize the installation using your ... As far as I can tell, we are only running Tomcat as an ISAPI application. ...
    (microsoft.public.inetserver.iis)
  • Re: Cantt download "exe" file because of IIS version
    ... The default MIME Type in IIS for .exe is application/octet-stream. ... When I looked at the download type it was still set to the MIME type that I just removed. ...
    (microsoft.public.inetserver.iis)