There are two files that you need to create for this to work.
Step 1 : Create .htpasswd
Step 2: Create .htaccess file
AuthName “Protected Area”
Save this file as .htaccess
Now please copy and paste this file whichever folders you wish to protect.
Now whenever you open the protected folder using browser you will be asked to enter password as follows.
#There are TWO basic Rules for success. “Never Tell Everything You Know” and “Never Tell You Know Everything”