Password protection is a bit more complicated than turning off right clicking or setting up simple forms. Most web servers have password protection of some type built right in, but unless your hosting provider has made it available to you, chances are you won't be able to use it.
Secure Password Protection
Password protection is only as secure as the passwords that are used, but the method used to set up the password protection is also important.
Server side password protection is the most secure. If your hosting provider allows it, you should use htaccess or server side passwords. There are many documents to help you use htaccess in my Htaccess - Password Protection links.
Use CGIs for Password Protection
The second most secure password protection for web pages is done with CGIs on a secure web server. The About.com forum login is done with a CGI backend that accesses a database of customer usernames and passwords. There are a number of Perl CGIs for password protection on the CGI Resource Index. There are also PHP scripts for password protection on the PHP Resource Index.
Read more of Web Design/HTML's most recent articles.