Web Design Help
It's free to register, to post a question or to start / join a discussion
password pages within website
Likes # 0
Posted February 19, 2010 at 10:43PM
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.
Likes # 0
Posted February 19, 2010 at 11:30PM
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?
Likes # 0
Posted February 20, 2010 at 6:27AM
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.
Likes # 0
Posted February 20, 2010 at 11:20AM
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>
Likes # 0
Likes # 0
Posted February 20, 2010 at 7:19PM
FE
The site went down this afternoon following a change of package fron Linux to MS.
It is back up now. Sorry about that.
Likes # 0
Posted February 22, 2010 at 7:49PM
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?
Likes # 0
Posted February 27, 2010 at 4:14PM
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.
Reply to this topic
This thread has been locked.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
New Xbox One release date, specs, features and price in UK
-
Samsung Galaxy S4 vs Apple iPhone 5 comparison review
-
Galaxy S4 vs BlackBerry Z10 comparison review - which is best, the Samsung or the BlackBerry?
-
Microsoft Windows 8 review
-
Best cases and covers for the new iPad: protect your tablet in style



