If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script (this page) This script will just take you to [password you enter].html This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory. As an added bonus, it's only 8 lines! Unlike the others, the password is the protected filename without the .html ending.