| Forums > Tips & Tricks > "BLOG PASSWORD PROTECTION (read this.)" (43 replies)
|
|
|
[script language="JavaScript" type="text/javascript"]
[!--hide
var password;
var pass1="YOURPASSWORDHERE";
password=prompt('Enter your password in order to view this page!',' ');
if (password==pass1)
alert('YAY you got it right! Click OK to enter!');
else
{
window.location="http://google.com/";
}
//--]
[/script]
Edit the bolded words. Change the [square brackets] to the sharp brackets.
THIS IS VERY EASY TO BYPASS. There is another password script which is more difficult for people to 'hack' pass, but you can make do with this.
|
|
|
| |
|
| |
|
| |
plz help me guyz!
where must we put the script?
the body?
script?
javascript?
help mie!!!
|
| |
| |
|
| |
yo. yeah i think its a good script.. even if people can view source. lols
|
| |
| |
|
| |
yay!! tks, it's useful((:
|
|
|
| Subscribe To This Thread: RSS 2.0 or Atom (?) |
| This thread has been locked, and no new replies can be posted. |