|
These are the steps to follow (please note that you have to do the steps in a Linux environment):
a. Go to the directory that you would like to protect.
b. Create a file called .htaccess in that directory.
c. Inside the .htaccess file, add the following lines:
AuthUserFile full path name
AuthGroupFile /dev/null
AuthType Basic
AuthName "Password-protected FlipBook
<Limit GET>
order allow, deny
allow from all
require user username
</Limit>
i.
The first line is where your htpasswd file is. It would have to be
the full path. ii. The forth line is for you
to describe the area or directory on your site that your users are
logging into. iii. The last second line is the
username that you would be using to access your directory. It would
have to correspond with the username that you have used in the htpasswd
file.
|