Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-29-2000, 07:12 PM   #1
Member (9 bit)
 
Roberto's Avatar
 
Join Date: Oct 1999
Posts: 483
Post

I have a small web site and would like to include a family page with a secure password. By secure I mean one which, at the very least, cannot be seen within the HTML code. Can anyone help?
Roberto is offline   Reply With Quote
Old 06-29-2000, 08:03 PM   #2
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Post

Probably the simplest way to deal with "restricting" access to a known group of people, is by using JS, of course this is my suggestion in keeping with my Keep-It-Simple filosofy.
All you need to do is name your html file in itself to a very obscure bunch of characters, have the script read the "password" and open up the appropriate window, if the pwd is wrong then an error page is opened. The obvious advantage is that there is NO mention of the target page under any circumstance.
If you find this idea acceptable, post here, and I can help you with the JS, if u dont already know it.

Cheers
Statica is offline   Reply With Quote
Old 06-30-2000, 12:53 AM   #3
Member (11 bit)
 
Rick Hall's Avatar
 
Join Date: Apr 1999
Location: Quebec, Canada
Posts: 1,239
Wink

Check your email, I sent you the JS code for doing what you want and a small explanation on how to use it.

------------------
Rick

>> -- <<
The solutions to todays problems,
Are the problems of tomorrow.

RH WebWorx - Site Creators
Rick Hall is offline   Reply With Quote
Old 06-30-2000, 05:19 PM   #4
Member (9 bit)
 
Roberto's Avatar
 
Join Date: Oct 1999
Posts: 483
Post

Thanks Rick. I have received your email and I will try out the code that you provided.
Roberto is offline   Reply With Quote
Old 06-30-2000, 05:22 PM   #5
Member (9 bit)
 
Roberto's Avatar
 
Join Date: Oct 1999
Posts: 483
Post

Ex-Static-Cling,

I am interested in your suggestion. Would it be possible for you to provide some details or better yet the code?

[This message has been edited by Roberto (edited 06-30-2000).]
Roberto is offline   Reply With Quote
Old 07-01-2000, 12:58 AM   #6
Member (8 bit)
 
Join Date: Dec 1999
Posts: 193
Post

If you want a secure method, and your host supports it, use CGI scripts instead. It's more secure than JS, and some JS can be bypass simply by disabling it in the browser.

Here are some sites for obtaining CGI scripts:
http://www.hotscripts.com/ http://www.cgi-resources.com/ http://www.perlarchive.com/
robo555 is offline   Reply With Quote
Old 07-03-2000, 02:30 AM   #7
Member (9 bit)
 
Roberto's Avatar
 
Join Date: Oct 1999
Posts: 483
Post

Rick,

Thanks again for the code. It works great. However, I don't know how secure it is. Do you have any idea how difficult it would be to avoid? Robo555 (see post) suggests that it can be avoided by disabling javascript in the browser. What are your thoughts?

Roberto is offline   Reply With Quote
Old 07-03-2000, 03:47 AM   #8
Member (11 bit)
 
Rick Hall's Avatar
 
Join Date: Apr 1999
Location: Quebec, Canada
Posts: 1,239
Post

Since the code I sent is used on its own web page, then turning off JS in the browser will not allow anyone to bypass it. They just will not be able to access your site unless they know the actual address of one of your web pages.

------------------
Rick

>> -- <<
The solutions to todays problems,
Are the problems of tomorrow.

RH WebWorx - Site Creators
Rick Hall is offline   Reply With Quote
Old 07-04-2000, 07:07 PM   #9
Member (9 bit)
 
Roberto's Avatar
 
Join Date: Oct 1999
Posts: 483
Post

Rick,

Thanks for the good news about disabling javascript.

One more question. When I enter the wrong password, it returns with the usual web page not found message. This is a clue that the script is looking for a web page. Is there any way to return a message that the password was invalid?
Roberto is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:20 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2