htpasswd -c /home/pwww/.htpasswd jerry
Then we create a .htaccess file on the same level where our directory is located that we want to be protected. We placed the below code block in the file:
AuthUserFile /home/pwww/.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require user jerry
Then try to reload your directory access using browser. You will get a window asking for authentication.
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide