This manual will help you to set up a password protected Chevereto, with the ability of display the uploaded images to non authorized users.
What does
Ask for userπassword in .php and .js files, so if someone want to upload an image, he or she will need the permission to do this. And, this will no ask for userπassword when someone wants to see an uploaded image.
Step by step HOW TO
Add this in your .htaccess
So, you can use any name in the AuthName, like "Who are you?" or "Please enter your user and password"... It's your call. In AuthUserFile you must put the full path to your userπassword list (.htpasswd), The easiest way is to puth this file in the same place of the Chevereto instalation. You can get this path looking up the path bar of your FTP program.
Then create a .htpasswd file and copy the userπassword in a new file named .htpasswd witch has to be uploaded to the path that you choose earlier.
And that is all... Now you have a password protected Chevereto... Wich can be used to a very personal or selected usage. You can set a lot of users in your .htpasswd file, one userπassword per line and you are ready.
π
What does
Ask for userπassword in .php and .js files, so if someone want to upload an image, he or she will need the permission to do this. And, this will no ask for userπassword when someone wants to see an uploaded image.
Step by step HOW TO
Add this in your .htaccess
Code:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/full/path/to/thepasswordfile/.htpasswd
AuthGroupFile /dev/null
<Files *.php>
require valid-user
</Files>
<Files *.js>
require valid-user
</Files>
So, you can use any name in the AuthName, like "Who are you?" or "Please enter your user and password"... It's your call. In AuthUserFile you must put the full path to your userπassword list (.htpasswd), The easiest way is to puth this file in the same place of the Chevereto instalation. You can get this path looking up the path bar of your FTP program.
Then create a .htpasswd file and copy the userπassword in a new file named .htpasswd witch has to be uploaded to the path that you choose earlier.
And that is all... Now you have a password protected Chevereto... Wich can be used to a very personal or selected usage. You can set a lot of users in your .htpasswd file, one userπassword per line and you are ready.
π