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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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