the best password protection script I have come across. It is also definitely the most user friendly. Try it out! (Note: The password is the filename without the .html ending.) This password for this example is: gatekeeper-in
There has been one bug report so far, affecting some versions of Internet Explorer. It exists in the 'password generator' script, rather than in the main password script, so it will not affect any visitors to your pages, regardless which browser they choose to use. If you find that you can not generate the new URLs, you may have to use Netscape to get around this problem for the time being. It is not a fault in the script, but in the way IE does not support JavaScript correctly. Nonetheless, a bug fix is in the works, so keep an eye out for the new version
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 ask them for their username and password, and then perform the password-protection. Very neat!
Fire up Notepad and copy the below code. Save the code as "password.txt". When you upload it to your server make sure to change the filename to "password.js".
If you can not change the file name when uploading, you must use a hex editor to save the file as 'password.js'. Click here to go to a site where you can download a hex editor.
Use this script to block certain IPs from your webpage, by redirecting them to another site. Note that your web server must have SSI enabled (most Linux servers do), with the page using the correct extension (ie: .shtml) in order for this script to work. Furthermore, since this script relies on JavaScript to block the user (by redirecting the person to another site), if he/she disables JavaScript in the browser, the script will become futile.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.