Click to See Complete Forum and Search --> : How to create password protected pages ?


Lee Rees
09-16-2003, 12:32 PM
Hi There,

I'm relatively new to this site (and web design). Basically my customer has a special offers html page which he wants password protected.

My question is what's the easiest way to create this. I have my own virtual server but ideally would like to avoid having to install software onto it (mainly because i dont know how!!). Is there a CGI script that could do the job for me?

There will be a number of password protected pages all with identical content bar an affiliate code in the form submit. So if anybody can recommend some software that would allow you to easily create new user id's which would then automatically generate html pages from a template.

Regards

pyro
09-16-2003, 01:25 PM
If you are using an Apache server, you could just use a .htaccess (http://httpd.apache.org/docs/howto/htaccess.html) file.

iniquity101
09-16-2003, 01:27 PM
Ive just been reading the HTML goodies newsletter, and saw thisin the Q&A section. It might help.


Q. I would like to add some simple password protection/security for a couple
pages I am creating that will contain some proprietary infromation (directory)
or to distribute material (formation lesson plans) yet not make them available
to the general public or visitors. Are there some simple securtiy techiques
that you can recommend which would allow me to do this?

A. The easiest way to do this is to protect an entire folder. This way you do
not have to do any scripting for the protection. You will have to get your
host to set it up for you. Usually they offer this for free. They will then
give you access to a text file that you can change the password to the folder.
You can usually add as many passwords as you need by simply adding them to the
text file, saving it and then uploading it to the server.

PeOfEo
09-16-2003, 05:22 PM
Those are ways to password protect but if you ever want an actual login that uses a data base session you will need to consider a server side language, this method can leave more room for additions later. I see you mentioned cgi above and that will work.

Lee Rees
09-17-2003, 10:36 AM
thanks guys i will probably take the cgi route then, can anybody recommend some cgi scripts for me ?

AdamGundry
09-17-2003, 10:53 AM
Try the CGI Resource Index: http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Password_Protection/

Adam