Click to See Complete Forum and Search --> : Sub-Site Password Protection


Redglare4
10-07-2003, 06:01 PM
I am trying to PASSWORD PROTECT an entire URL (ex. http://www.sitename.com/SUBSITE) and have not been successful. I don't want to password protect my entire site though, just a subsite within my domain. I've tryed a few javascript codes and they are weak. I need it so a viewer cannot see any pages without first entering a correct password. One main thing I don't want is for someone to go directly to a page without first being cleared with the login password. I have have heard throughout this forum that using Javascripts to protect a site is weak and not very effective. How else could I protect my site: CGI?, Cookies?, etc.? If someone could help me in telling me how to set up a fairly secure site with all my protection needs listed above, that would be wonderful. Please include the CODE to use when setting it up and entering the code into my site.

Please email me with your suggestions or post a reply to my message. Thanks!

User: Redglare4
E-Mail Address: redglare4@hotmail.com

Justin
10-07-2003, 06:51 PM
write the who site useing cgi if the password is correct, use the print comand to write the page. use a cookie after ti keep them on without constant cgi

Im not to shure how to do this very well to make it safe, but ask in the cgi thred

Dimitri
10-07-2003, 06:53 PM
Javascript is not a good way to protect a directory. Period.

Password protecting a subdirectory of your site could be as simple as setting htaccess in apache (if you're using apache). No DB required.

Consult your admin to add password protection to the directory you wish to protect.

There are countless ways to go about what you're trying to do. It's not a simple matter of "here ya go... here's the code you asked for... go run it." I've no idea what web server you're running, what languages it uses, or what DBMS you have access to.

Also, what you're asking for is completely beyond the scope of this Javascript forum.

Sorry I couldn't be more helpful.

Consult your site's admin (if you're running apache). Or, depending on who's hosting your site, it's likely that they already have an option that allows you to password-protect your directories automatically (probably in an online administration page dedicated to your website.)

Good luck.
Dimitri

Redglare4
10-07-2003, 09:58 PM
Thanks Dimitri for your great feedback! I sent a message to my webservice to see if it was possible. I'll be awaiting a reply within a few days at most. Anything else anybody can think of would be appreciated!

By the way: here is some information on what I use if it could help:
I use Sitebuilder by Trellix in Tripod. It is a web based service so it uploads my site from there. It supports HTML, Java, and CGI.

Thanks!
User: Redglare4
E-Mail: redglare4@hotmail.com

Macman
10-08-2003, 12:18 AM
You might want to check out this shareware product at http://siteinteractive.com/acctlite/. I have considered using it. It does not have the billing features that are in the full Professional version. It is call Account Manager Lite.

Macman;)