PDA

View Full Version : Password Help...


Ben@WEBProp
10-07-2003, 12:13 AM
Hey guys and gals, long time no see. I have a very quick and specific question for you all. I need to find a javascript or cgi (or the like) type of password protection for a page that it prompts you for the password (no username) when the page loads. I know that someone is just itching to tell me to use .htaccess, but my Service Provider doesnt allow it on their servers. By now, there is surely someone with the bright idea of telling me that my ISP is a bunch of sUxOrZ, and that I should drop them and go with something better, but I dont own the company that I work for, so that aint gonna happen.

So anywho, what I really need is a password protection for just a single page, relatively simple, and i do know the downfalls of using a javascript password system, but the stuff that is being protected isnt all that classified. Does anyone have a link or script for me? Thanks!

-Ben

P.S.- I will read all the ProMoz posts tonight, and post some replys so we can get the ball rolling on that whole dealy-o, alright?

oracleguy
10-07-2003, 01:06 AM
Originally posted by Ben@WEBProp
P.S.- I will read all the ProMoz posts tonight, and post some replys so we can get the ball rolling on that whole dealy-o, alright?

Pro Moz... you are way behind... :) That ain't the name anymore.

I've taken the liberty of heading the project since I couldn't get a response from you.

mlseim
10-08-2003, 02:11 PM
Here's the old javascript standby ...
The pop up policeman that asks you for a password.
The password is actually the name of the HTML file,
without the the "HTM" attached.

Working example:
http://pages.prodigy.net/seims/gatekeeper/

Problems with this:
Once someone knows the password, they can tell
others. Once the webpage is accessed, it remains in
the browser history and can also be bookmarked.

But, it's a simple way to keep out unwanted viewers.

Ben@WEBProp
10-09-2003, 12:08 AM
Hmm, well that rent-a-cop for the net is basically the same idea that I want, it is just in the wrong place. You see, the link is in a toolbar that is on every single page, and I dont really want to add that thing to every freakin page on the web, so I'm gonna search for an easier answer.

For clarification, here is what a user should do with the script I am searching for:

1) User goes to site.
2) User gets curious as to what the Resident Managers Forms section looks like.
3) User ponders his/her sexual orientation for a moment...
4) User clicks the Res Manager link.
5) User can see the page behind a small notification with a text area asking for a password.
6) User tries to click on the page to avoid the password box, but cannot.
7) User types in his/her own little rendition of a great guess for a password.
8) User fails miserably and sees another notification letting him/her know that they have failed miserably.
9) User clicks the only button availible (The "OK" button).
10) User is the sent to the home page.
11) Users curls up in the fetal position and cry's a little bit...
12) User gets back up and repeats steps 3-12.

Get it? Does anyone have anything like this? Oh ya, and the notifications don't necessarily have to be the browser notifications...I mean I dont know how CGI works, but it could be a code-generated box rather than a browser-generated box.

Thanks for all the help.

Roy Sinclair
10-09-2003, 04:50 PM
Have you checked the POST A JAVASCRIPT forum?

I think there's a fairly complete one listed in there you could check out.