Topic: Password protect Chevereto
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:password 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:password when someone wants to see an uploaded image.
Step by step HOW TO
Add this in your .htaccess
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:password 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:password 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:password per line and you are ready.
![]()

