password pages within website

  quack 19 Feb 10
Locked

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 19 Feb 10

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 20 Feb 10

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 20 Feb 10

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:
</script>
<!-- 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. -->
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<title>rer</title>
<script>
//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?")
if(p){
var ans="babyface"
var pass=prompt("what is the pass word")
if(pass!==ans)
{
alert("wrong you will now be transfered")
window.location="click here"
}else{alert("correct");}
}else{window.location="click here"}
</script>

  Forum Editor 20 Feb 10

I get the 1&1 domain parking page.

  quack 20 Feb 10

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

  quack 22 Feb 10

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 27 Feb 10

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.

Advertisement

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

Should I upgrade to Windows 10? 8 reasons why you should upgrade to Windows 10... and 2 why you…

We are being sold the ability to spend money we don't have. And we love it

IKinema aims to banish droopy shoulders and wonky spines in animated CG characters

How to use Apple Music in the UK: Complete guide to Apple Music's features

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message