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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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