restrict direct directory access... restrict direct directory access...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

restrict direct directory access...

Started by SirKeats, April 17, 2007, 01:07:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SirKeats

i'm not sure if this is a coppermine issue, or if it's something like an htaccess issue, but i'd like to restrict directory access somehow.

currently, when someone right clicks and image and gets the image path, they get something like:

http://www.url.com/coppermine/albums/albumname/49.jpg

and so if they want they can go back and get a full dir listing by pasting in

http://www.url.com/coppermine/albums/albumname/
or
http://www.url.com/coppermine/albums/

i'd like to prevent folks from directly accessing those directories (forcing them to use coppermine instead).

possible?  i didn't find anything about this on the forums or in the documentation, but i might not know the right keywords to search for.

thanks for the help!

Nibbler

You can do this using .htaccess with this code

Options -Indexes

Put that in your albums directory.

SirKeats