Password-protection

In some cases it might be appropriate to password-protect one or more email addresses. You could provide a link to a special contact page containing your address(es) which only visitors with the password could access. This is obviously not well-suited to most public websites, but it could work if you put up a message like this:

Click here to go to our contact page. To help us avoid email harvesters, please enter the following password: password

This method is ideal for protected a large number of email addresses in a private organization; for example, a company staff contact list.

There are many ways to password-protect web pages, including htaccess files and password scripts (using, Perl, PHP, etc). Exactly how you protect your page is beyond the scope of this tutorial. For more information, contact your hosting provider or ask in our web design forum.


Next page: Hiding Addresses with JavaScript