Password Protect | JavaScriptSource

Password Protect

JavaScriptSource Staff Jun 17, 2005
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.

The JavaScript Source: Password Protection: Password Protect

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response


Very simple to set up. Doesn't get any easier. Just what I needed! Thx!

Brewster Jul 17, 2013

Tried above script...did not looking for a script that returns user to index.html if password is incorrect.

Don Aug 24, 2012