|
 |
asp_discuss thread: File protection such as pdf,mpeg etc. with ASP Please Help!
Message #1 by "Gary Yu" <dreamwonder69@h...> on Tue, 2 Oct 2001 23:33:17
|
|
Hello Everyone
I need some pointers on how to protect files such as mpeg pdf etc using
asp. If a user tries to download a file that is protected it will redirect
to a login page first and the user would have to be authenicated first
before access is allowed. I really want this login to be web based, I
don't want a pop up box from IE that ask for a username and passord. Sites
like ign,com does this. Any help is greatly appreciated. thanks in advance.
Message #2 by Hal Levy <hal.levy@s...> on Tue, 9 Oct 2001 07:54:53 -0400
|
|
Gary,
There are two ways to do this:
1. Put the files under NT Authentication and get that popup box (which you
don't want)
2. Use a form to get user information. Then store a cookie that says who
they are. Then use an object to serve your files and before the object
serves the file it makes sure that the user is authenticated.
Hal Levy
StarMedia Network, Inc.
Intranet Development Manager
> -----Original Message-----
> From: Gary Yu [mailto:dreamwonder69@h...]
> Sent: Tuesday, October 02, 2001 7:03 PM
> To: asp_discuss
> Subject: [asp_discuss] File protection such as pdf,mpeg etc. with ASP
> Please Help!
>
>
> Hello Everyone
>
> I need some pointers on how to protect files such as mpeg pdf
> etc using
> asp. If a user tries to download a file that is protected it
> will redirect
> to a login page first and the user would have to be
> authenicated first
> before access is allowed. I really want this login to be web based, I
> don't want a pop up box from IE that ask for a username and
> passord. Sites
> like ign,com does this. Any help is greatly appreciated.
> thanks in advance.
>
Message #3 by Kyle Burns <kburns@c...> on Tue, 16 Oct 2001 13:48:52 -0500
|
|
Easiest way is to put the files outside of your virtual root. You can have
a page called GetFile.asp and use that page to read the file from a secure
location, set the correct ContentType of your Response and the write out the
contents of the file. This way, all access to content happens in the
context of a running ASP script and you can check for a valid logon, whether
through session variables or some other method.
=================================
Kyle M. Burns, MCSD
ECommerce Technology Manager
Centra Credit Union
kburns@c...
-----Original Message-----
From: Gary Yu [mailto:dreamwonder69@h...]
Sent: Tuesday, October 02, 2001 6:03 PM
To: asp_discuss
Subject: [asp_discuss] File protection such as pdf,mpeg etc. with ASP
Please Help!
Hello Everyone
I need some pointers on how to protect files such as mpeg pdf etc using
asp. If a user tries to download a file that is protected it will redirect
to a login page first and the user would have to be authenicated first
before access is allowed. I really want this login to be web based, I
don't want a pop up box from IE that ask for a username and passord. Sites
like ign,com does this. Any help is greatly appreciated. thanks in advance.
|
|
 |