Click to See Complete Forum and Search --> : Need Perl help


LizzyBug
10-17-2005, 02:03 PM
I'm new to the whole server-side aspect of things and I am having a problem with my website. I'm looking to put a password protection on a page of my website and I'm not sure how to go about doing it properly. I was advised to use Perl to do this, but seeing as I have no idea what I'm doing, I thought I would ask someone else for some help. I have written my password.cgi file, but I have no idea where to put it or what to do with it. Please let me know what to do next.

Thanks in advance,
Lizzy

LiLcRaZyFuZzY
10-17-2005, 06:31 PM
what exactly do you need to password protect?
and how do you want the user(you?) to authenticate?
you can either use a form to gather the username/password and handle them with any server-side language. Or you can use the browser authentication, that you can also handle server-side, with php im sure, so i bet you can also do that with perl

Jeff Mott
10-17-2005, 10:20 PM
Neither Perl nor PHP is the best option for this, actually. Since it is the server software that accesses the documents it's easiest to configure that to control access. If your server is running under Apache then you can read Apache's tutorial Authentication, Authorization and Access Control (http://httpd.apache.org/docs/2.0/howto/auth.html).