|
There may be times when you need to password protect certain pages on your website so that only the people whom you give the password to is able to view it.
There are many different ways of doing this. Which one is best depends on your situation. Here are just a few of the ways.
1. Use cPanel of your Linux webhost to password protect a sub-directory of your website.
2. Write PHP access control code. One simple example of such code is found in Chapter 12 of the book Build Your Own Database Driven Website Using PHP and MySQL which includes an login and logout feature with password hard-coded in the script.
3. Use the simple and free password-protect PHP script.
4. If your website is a Joomla-powered website, then you can use the JUGA Joomla User Group Access extension to control access to various pages or sections of your site.
|