.htaccess trouble
bpd@darb.net
Joined: 2002-08-20
Posts: 101 |
Posted: Thu, 2003-04-24 04:57 |
Hello, I have put a .htaccess file into one of my album directories that requires it to have a password. It works fine and denies access to photos unless the vistor gives a username password that is correct (independant of gallery's database, its a htaccess userlist). The issue is however that they can still see the "album" just not the thumbnails or pictures ... they can still see captions, hits, comments etc. I thought that by locking down that directory, it should prevent anyone from even being able to READ the index files rquired to display? the .htacecss works perfectly on other html-based directories i have, but for some reason they can get past its a gallery directory. The URL is http://darb.net/secured-private My .htacess read like this ; AuthGroupFile /dev/null any ideas ? Cheers ------ |
|
Posts: 3474
The problem is that when you view an album, you're actually looking at this file:
http://www.yoursite.com/gallery/view_album.php
This *isn't* inside your albums directory, so the restriction doesn't apply. The code in view_album.php reads the database data directly from the files, and is not subject to the HTTP authentication restriction.
But if you restrict the albums with the Gallery user system, shouldn't that be enough to prevent someone from getting into the album in the first place? You might be better off putting your entire gallery behind the HTTP authentication, though.
G1's security is not ideal in that the photos are publicly available. G2 will use a firewall which will provide true protection in that images will only be available via Gallery itself.
-Beckett (
)
Posts: 101
cheers ... i dont want to use the gallery user database because i wanted the albums visible, just not accessbile
ie, you go to click it, and then it prompts, rather than it being hidden.
no matter.