Forum Moderators: coopster & phranque

Message Too Old, No Replies

Password-protection of a site

How to password-protect certain parts of a site?

         

Istari

3:42 pm on Jul 17, 2001 (gmt 0)



Hi all,

I've been trying to find a way to password-protect certain parts of a website. I've tried JavaScripts and Java Applets, but I'm not satisfied with either one, because once you know the URL's of the protected pages you can skip the authentication and go there directly. I want it to be impossible to visit certain parts of the server, unless you have the correct password.

I know it is possible with CGI-scripts, and my ISP supports CGI-scripts. My knowledge of scripting is minimal and I haven't been able to find a suitable script on the internet yet, which I could copy/paste.

Could someone provide me with a URL where I can find a suitable script?

Thanks in advance,

Mark

bobriggs

3:52 pm on Jul 17, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You didn't mention what type of server you're using. If apache, then take a look here first:

[apacheweek.com...]

[httpd.apache.org...]

bartek

3:53 pm on Jul 17, 2001 (gmt 0)

10+ Year Member



Welcome, Istari...
check out the htaccess tutorial [rit.edu], setting it up is pretty easy. This will effectively protect your pages.
hth

stickytape

4:11 pm on Jul 17, 2001 (gmt 0)



The best resource I have found for free scripts is [hotscripts.com...]

They have lots of different types of code there, from PHP, ASP to CGI etc etc

Rich