This is just an addition to my original post. Basically this is another Java Script Password Protector, but this one is a little bit harder to get through than the other. However, once again I will say this is not a safe way to protect a page, so look into other ways of password protecting a page if you want to do it.
How To Do It:
Start with your original page called page1.html On this page have the below link to an middle page between the original and the one the password protects.Enter Here
This link takes you to a middle page which has the password script on it. The script is below.Middle Page