Passwords: Three Tries
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.
Read more here
edit: Programming/Javascript/auto___passwords__three_tries.wikieditish...