Passwords JavaScript Code Snippets

These snippets all deal with JavaScript password protection snippets. They are an elementary attempt to protect a site and should NOT be used to protect top secret information. They just keep the amateurs out. Pros can infiltrate such sites with these forms of protection. But, for free, they do a good job. They are sometimes very difficult to write – just look at the code.

Results via Envato Market

“This is a trick I found to the “”NO RIGHT CLICK”” script! If you hold down your left mouse button and and while still holding it down press the right mouse button. It will bring up the right click menu! This only works with the early versions on the “”NO RIGHT CLICK”” script. There have been new versions of the script that will not let you do this trick!”

Two-word pin code used to direct user to secret file. First word: name of folder in same directory as password file. Second word: name of html file hidden in that folder. Create these folders/files to test. For example, password ‘one two’ brings you to file ‘two.html’ in folder ‘one’.

this little baby…is an amazing security…after right clicking on the screen…they will have no choice but to exit the browser, because as soon as they click on the browser screen it will overload

Protect your source code! This simple script encrypts html or text to numbers. No decryption codes required. Just a little line of JavaScript to decrypt the code. Other encryption utilities do not encrypt letters or numbers only symbols but this one does every thing!

A basic, and very easy to use password script, including a no right-click feature for increased security. I recommend this script to be used in a frameset for increased security. Please nominate. -Nik

This script is good for thoes who have web pages that have forms that you have to fil out passwords! this script will check to see if the person has filled out the first and second password and then checks to see if they are the same!

with this password protector you give them a confirmation box that asks them if they still want to enter. if they click cancel the get redirected to yahoo. if they click yes they go on to the password field. if they get it wrong they go to yahoo too.

Rather not have one password for access the Members-Only section of your site? Well, along comes this little JavaScript gem. You can set up a separate username and password for as many members as you want, and even give each a different page to go to after logging in!

This script is better than a triple whammy. You can easily set up multple users and passowrds. You can send those users to different web pages. The usernames and passwords are kept in a separate file. It has a three times and you’re out loop. It is extremely easy to configure. When your run this use the following username/password: me/password or you/here Or try entering in the wrong password. To download the entire package goto Please dont forget to nominate this script

Allows you to truly password protect a site. Generates all the code required. Don’t bother with messy redirection code snippets; use this real password protection system.