Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Protection
#1
HEllo..This is a small tut for password protection script.
Quote:<script language="JavaScript">
<!--

var username = prompt("Enter Username In the Box Below","")
var password = prompt("Enter Password In the Box Below","")

if (username !="USERNAME HERE" || password !="PASSWORD HERE")

{ top.location="about:Bad Username and/or Password" }
//-->
</script>
[Image: 2d75599e9a.png]:superman:
Reply
#2
Thanks for it, but people can find your password easily by viewing your source :/
Perhaps you can use it with the "Disable Right Click" script so that it will be protected Smile
Reply
#3
You could protect it by inserting it in a PHP script but I am not sure never did that before and use the include function.
Reply
#4
I have posted the disable right click script before.
[Image: 2d75599e9a.png]:superman:
Reply
#5
Not good. Use .htaccess to do this.
Disabling right click is not enough if you ask me.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply
#6
he can use ht.access but what if he does not have a database?

by the way javascript is in stoneage now.. your visitors might get annoyed running throug every script error all the time they need an input..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Make A Password Field (HTML) Kaleb 42 10,081 07-04-2011, 09:47 AM
Last Post: Link
  php Password Randomizer . . . cortexaz 11 1,767 12-21-2009, 02:37 PM
Last Post: cortexaz

Forum Jump:


Users browsing this thread: 1 Guest(s)