How To Password Protect Your Website's Pages

September 23, 2008 · Filed Under Web Development · Comment 

If you want to keep some of your website hidden or protected from the general public, there are a number of different ways to password protect your website.

You can keep some (or even all) of your website private by putting a password protection system in place. The degree of security you achieve will be a function of the protection method you've chosen. How strong (or weak) your passwords are will be another factor in the security of your web pages. Aim for a password length of at least 8 characters, at least a mixture of letters and numbers.

Begin by logging into the control panel on your web host. If your host uses Cpanel (which is the most popular control panel) then all you have to do is select the password protection option and follow the instructions. This is an easy and fast way. All you need to do is select the folder you want to password protect, type in a user name and password and click the “save” button.

The only snag with this method is that you’ll need to either do this for every single user of your site or use a common user name and password that is issued to everyone. You can work around this by changing the password regularly but there is still the potential for people to share the log-in details.

If the thought of logging into a control panel fills you with dread or your control panel stubbornly refuses to allow you to password protect part of your site, there are other methods you can use. There is a simple software program that will do everything for you at an affordable price. Check with your website host to see whether of not you're hosted on a Unix or Linux "platform". If you are, you can restrict access to your pages using your htaccess file. There are plenty of tutorials on the web if you want to go down this route.

If your reason for password protecting your website is that you’re running a membership site, there are a number of software programs out there to help. One of the best supported of these is called Amember - you can get more details from this link.