How to enable site downloads after user is given password?

N

natshaw99

I'm looking for a ready package or shareware that will let visitors to
my site download individual files after I mail them the password. I'm
not looking to encrypt the files and don't care if the visitor mails
them to others after download.

Thanks
Nat
 
J

John

I'm looking for a ready package or shareware that will let visitors to
my site download individual files after I mail them the password. I'm
not looking to encrypt the files and don't care if the visitor mails
them to others after download.


IMO, you need to handle this in server side script. (it may be doable in JS
on serverside, but I've never seen it)

if( server == "Windows")
document.location.href = "microsoft.public.dotnet.framework.aspnet";
else
document.location.href = "comp.lang.php";


Good luck.
 
A

ASM

(e-mail address removed) a ecrit :
I'm looking for a ready package or shareware that will let visitors to
my site download individual files after I mail them the password. I'm
not looking to encrypt the files and don't care if the visitor mails
them to others after download.

do you mean the visitor fill a form (with his url) and on submit
the form mails to him the password ?

or
do you only need that filling a password
will send visitor to the download page ?

you can use a password wich is the name of download page

password_page.htm

<html><title>Pass to downloads</title>
<form onsubmit="var download = 'myfolder'+this[0].value+'.html';
ici=window.open(download,'','width=400,height=300,scrollbars=1,resizable=1');
return false;" style="text-align:center">
Enter your password here :<br />
<input type=password><br>
and press [Return]
</form></html>

myfolder = folder where are the download pages or relative path to them

if password is wrong (not the name of file without its suffixe '.html')
the server will send its error page 404
 
T

Thomas 'PointedEars' Lahn

chotiwallah said:
no real password protection possible with
_client-side_

javascript, because it's client side and therefore readable by the client.

Yes, but it is well possible and secure with server-side J(ava)Script.
Consider JScript in ASP, for example.


PointedEars
 
T

Thomas 'PointedEars' Lahn

David said:
Access control is built in to just about every reasonable web server. For
Apache, look at the documentation for the .htaccess file. You can
trivially set it up so that a particular set of pages are protected by a
username and password; no Javascript or, indeed, anything other than HTML
1.0 are required.

You mean _HTTP/1.0_. I doubt there was an implementation of
HTML 1.0 in an UA other than TBL's test implementation :)


PointedEars
 

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

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top