password pages within website

  quack 22:43 19 Feb 2010

I need to create a secure area within my website and thought that the best way would be to have a passworded page from where the pages I don't want in the public domain can be linked. I have tried a free java code script which works when previewed from my HTML editor but will not work when published to the internet. Any advice or code snippets would be very welcome.

  Forum Editor 23:30 19 Feb 2010

is that they aren't particularly secure. People simply have to add the page to their favourites once they're in, and they can get there repeatedly without logging in again.

There are far more secure methods, but in order to advise you properly I'll need to know if there will be many people using the protected pages, and whether there will be much 'churn' - will you continually add and remove names from the list?

  quack 06:27 20 Feb 2010

FE Many thanks for your reply. There will be about 50 people using the protected pages and they will not be changed very often. It may help if you view the site click here As you will see it is a police drugs liaison site which is mostly in the public domain. If you use the link to 'secure area' you will be able to see what is happening.

  quack 11:20 20 Feb 2010

Hi fourum member
Exactly right. However whilst previewing it in IE8 from Front Page it works perfectly with the next box asking for the password and if correct forwarding the visitor to the Secure Area page and thence to the pages linked from there. If the password is wrong the visitor is forwarded to the Join page where they can fill and submit a form to obtain membership and correct password.
The script I'm using is:
<!-- This script has been in the click here Javascript Public Library! -->
<!-- Note that though this material may have been in a public depository, certain author copyright restrictions may apply. -->

<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
//we will frirst ask the user if he wold like to countinue into this restricted area
var p=confirm("this site is pass word protected,do you still want to enter?")
var ans="babyface"
var pass=prompt("what is the pass word")
alert("wrong you will now be transfered")
window.location="click here"
}else{window.location="click here"}

  Forum Editor 14:06 20 Feb 2010

I get the 1&1 domain parking page.

  quack 19:19 20 Feb 2010

The site went down this afternoon following a change of package fron Linux to MS.
It is back up now. Sorry about that.

  quack 19:49 22 Feb 2010

Further to this post. I have now been told by a friend that the site works perfectly well in IE6.
but it doesn't seem to in IE8 as I get an Information Bar message which basically says that the site is attempting to run a script asking for the supply of information. Problem is I can't click on the Information Bar to allow this whilst the Log In box is showing. Close the box and the transfer to the Join page takes place. Could this be a security function within IE8 which could be turned off?

  quack 16:14 27 Feb 2010

I have now found that the script I am using works perfectly in Google Chrome, Firefox, Safari & Opera browsers. But not in IE8. Has anyone any comments of a helpful nature please.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

iMac Pro review

Illustrator Charles Williams on how to create magazines and book covers

iMac Pro review

Les meilleures prises CPL (2018)