NameSilo

HELP for Javascript (pass-protect for blog)

Spaceship Spaceship
Watch

rome2ng

VIP Member
Impact
42
hihi guys,

i am wondering if you guys know any javascripts that can be easily pasted on the template HTML of blogspot.com so that any user will be prompted by Javascript for password, if incorrected entered will be redirect to somewhere

anyone ?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
not anyone can help me ???

i think it's like prompt ....

if not true, redirect to yahoo.com

but if true.... how ?
 
0
•••
0
•••
be aware that the user can get the password by viewing the source, so make sure u either encrypt the password string or use an authentication method thats NOT client side (such as php or something)
 
0
•••
thks for unknowngiver , but

actually i just need a simple "prompt" script for the password.

it's not a login js script as
if you have a blog, you can't use a login script. there's only 1 page !!!!

i think it will just a simple script with the alert function like prompt for password... etc

Actually i found it

[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]
 
Last edited:
0
•••
Dynadot — .com TransferDynadot — .com Transfer

We're social

Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back