Log In · Register

 
about the PASSWORD PROTECTION
zoezoo
post Aug 7 2005, 02:30 AM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: Aug 2005
Member No: 195,672



<!-- begin code provided by createblog.com -->
<script language="JavaScript" type="text/javascript">
<!--hide
var password;
var pass1="YOURPASSWORDHERE";
password=prompt('Enter your <span class='searchlite'>password</span> in order to view this page!',' ');
if (password==pass1)
alert('YAY you got it right! Click OK to enter!');
else
{
window.location="http://www.lissaexplains.com";
}
//-->
</script>
<!-- end code provided by createblog.com -->


Why this code is not work?
is it only change the part"YOURPASSWORDHERE"???


THZ!!
 
 
Start new topic
Replies
gelionie
post Aug 7 2005, 02:32 AM
Post #2


say maydayism.
*******

Group: Staff Alumni
Posts: 7,447
Joined: Jun 2004
Member No: 26,344



Yes... but there is a flaw in this script.
People may still be able to see your password in your source code unless you encode your script first before pasting it onto your Look and Feel page.

//EDIT:

duplicate topic: http://www.createblog.com/forums/index.php?showtopic=95578
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: