468,525 Members | 2,279 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,525 developers. It's quick & easy.

password protection of web pages and restrict access..all in javascript

Hi,

I will be looking to use gatekeeper or some other javascript method of
password protection but...

Once there I need a way of resticting access to a page to stop someone
from bookmarking and jumping directing into an area they may not have
access to bypassing the login page.
Any ideas or links??
Chris
Jul 20 '05 #1
2 2348
chris wrote:
Hi,

I will be looking to use gatekeeper or some other javascript method of
password protection but...

Once there I need a way of resticting access to a page to stop someone
from bookmarking and jumping directing into an area they may not have
access to bypassing the login page.
Any ideas or links??
Chris

You can secure access to a page in javascript, but the effort far
exceeds the result. Best to use a server side solution.

The only way to really secure a site in javascript is to use an
encryption algorithm to encrypt the page, then on receipt of the correct
password, decrypt and display the page. In that set up, the password
does not exist on the page and no one can link to the page since it
doesn't exist until decrypted.

But again, the effort to create and maintain such a system is prohibitive.

Jul 20 '05 #2
In article <14*************************@posting.google.com> ,
lo*****@yahoo.co.uk enlightened us with...

Once there I need a way of resticting access to a page to stop someone
from bookmarking and jumping directing into an area they may not have
access to bypassing the login page.
Any ideas or links??


Sessions or .htaccess are the more secure ways of doing this.
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Wm | last post: by
6 posts views Thread by Lou | last post: by
10 posts views Thread by Max | last post: by
7 posts views Thread by Eagle35 | last post: by
22 posts views Thread by xmp333 | last post: by
6 posts views Thread by Roger Judd | last post: by
3 posts views Thread by Miro | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.