.htaccess is a configuration file for Apache web server with directives to make some config changes on a per-directory basis. You can use it to create basic authentication on your website to protect some directories and all it's subdirectories and files from unauthorized access. It's used together with .htpasswd file, which contains usernames and encrypted passwords of your members. With AuthPro you can easily setup and manage .htaccess based password protection and generate and update .htpasswd file with your active members list.
How it works
You will need to upload our PHP script which will create basic .htaccess config file and generate actual .htpasswd password file with your AuthPro members list.
$account='Your Authpro account username'; $api_key='Your Authpro account API key'; $folder_name='Members area'; $folder_path='/home/website/www/members/'; # Primary path, must be defined //$folder_path=''; # specify additional folders if needed
<script src="http://your.webite.url/authpro.php"></script>(use actual URL of uploaded AuthPro script on your website in script code).
Please contact us if you have any questions.