im using a gallery script in root directory that reads a subdirectory and lists images inside.
/gallery/index.php?gallery=aaa --> lists thumbs in folder /gallery/aaa/thumbs/
/gallery/index.php?gallery=bbb --> lists thumbs in folder /gallery/bbb/thumbs/
Click on thumb opens the large image. Large images are in folder
/gallery/aaa/ -> includes htaccess/htpasswd
/gallery/bbb/ -> includes htaccess/htpasswd
Ive added htaccess/htpasswd protection to each image folder to give 1 user access to 1 image folder. The problem is that the password prompt appears in a loop, multiple times. Would you help to setup the protection correctly? If this cant be done, whats a good alternative?
Thanks in advance
example for dir aaa:
htaccess file:
AuthUserFile /gallery/aaa/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
htpasswd file:
admin:adpexzg3FUZAk