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
 
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Web Design Help


It's free to register, to post a question or to start / join a discussion


 

password pages within website


quack

Likes # 0

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.

Like this post
Forum Editor

Likes # 0

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?

Like this post
quack

Likes # 0

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.

Like this post
quack

Likes # 0

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>

Like this post
Forum Editor

Likes # 0

I get the 1&1 domain parking page.

Like this post
quack

Likes # 0

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

Like this post
quack

Likes # 0

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?

Like this post
quack

Likes # 0

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.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Samsung Galaxy Note 4 release date, price and specs 2014

IDG UK Sites

What's the best smartwatch? 11 iWatch rivals compared in our wearables round-up

IDG UK Sites

App cloning: the mobile software industry’s hidden shame

IDG UK Sites

Developers get access to more Sony camera features