This JavaScript is just like the previous Multiple Users one, but doesn't use a table interface to login. Instead, after clicking the Login! button, the script will prompt users for their username and password, and then perform the password-protection.
Version: n/a Platform(s): Independent Updated: Sun Aug 22 1999
You can use a basic cookie script to keep visitors (that don't have the cookie on their system) from viewing certain parts of your site (kind of.... There are always ways around it). The cookie is placed when the password provided is correct. Then, when they are forwarded to the password protected page, the cookie allows them to stay. Those without the cookie are sent back.
Version: n/a Platform(s): Independent Updated: Sun Aug 22 1999
This user friendly script allows you to password protect your Web site/pages. The password is the filename without the .html ending. This password for this example is gatekeeper-in.
Version: n/a Platform(s): Independent Updated: Sun Aug 22 1999
If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script. This script will just take you to [password you enter].html. This program works as long as JavaScript is enabled and you have an index.html file in your directory. The password is the protected filename without the .html ending.
Version: n/a Platform(s): Independent Updated: Sun Aug 22 1999
If you want to 'protect' a site and don't have CGI access, you can try this JavaScript. Visitors get three tries to enter the correct password then they are refused entry. The password of this example is: password.
Version: n/a Platform(s): Independent Updated: Sun Aug 22 1999