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

I know I am not very original, by makin’ this script. But this script is different, there is no trick to hold left and right button possible. If you have right clicked, the window will go down, and a alert pops-up. A few alerts later it will make 15(!!) pop-ups of pokemon.com! It is just for the fun!

A PATCH/FIX FOR THIS SCRIPT WAS UPLOADED ON JUNE 06, SEE SCRIPT NUMBER 28050 (ENTER 28050 IN THE SEARCH ENGINE BOX)!!!!. Prevents a Non-IE5 user from accesing the source code, images, text, HTML by right clicking. For IE5 users, right clicking pops up a side menu (SideMenu is configurable). It also resolves the issue of users left clicking and holding the left mouse button while right clicking. The script is configurable and includes set up instructions. Works on ALL browsers with documents contaning frames or no frames. See source code for more information. ***Coming Soon*** Working on another script to add-on to this script. It’s for No Keyboard Strokes (All Keys) and No CTRL-N, CTRL-U, CTRL-L, ALT-V. Nominate me please? Thanks! 🙂

“DON’T USE THIS! This WAS a patch/update/fix to Script Number 27907 for the right click and left click functions (source code, images, text, HTML). It was a fluke (my mistake). Please use PATCH 2 instead at Script number 28050 by entering 28050 in the search engine box near the EarthWeb Logo under the “”Search the Site”” text. Or you can enter the word OPSYS (in that same location) for all the listing of scripts that I have posted. Thanks! (I had to keep this posted because I had told about a zillion people to download this script — if you’re one of them, don’t! Go to Script Number 28050 instead)”

JUST TYPE A NUMBER INTO EACH BOX AND IF THE PIN IS CORRECT THEN YOU WILL GO TO THE PASSWORD PAGE. THE PASSWORD IS 167498780. YOU MAY NEED TO USE THE KEYBOARD TO NAVIGATE THE LOG IN PAGE. USE TAB AND RETURN.

An easy, effective password protection script for your site. Easily configured for as many passwords as you like. You can not see the password because the JavaScript is being stored in a different file (see the source code if you don’t believe me). (The password is either pass or password, what ever you like. The password is case sensitive.) NOW WITH AN INPUT BOX ON THE PAGE AND NOT A JAVASCRIPT POPUP

An easy, effective password protection script for your site. Easily configured for as many passwords as you like. You can not see the source code because if the password is incorrect, the user is re-directed to another page. (The password is either pass or password, what ever you like.)!!!!!HAVE A LOOK AT v2.0!!!!!

Use this script to protect online files. Users cannot cancel out of it. It can also be used with your browser’s home page to control Internet access on your own computer.