Advanced search  

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]

Pages: [1]   Go Down

Author Topic: restrict direct directory access...  (Read 2534 times)

0 Members and 1 Guest are viewing this topic.

SirKeats

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
restrict direct directory access...
« on: April 17, 2007, 01:07:34 am »

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!
« Last Edit: April 17, 2007, 08:12:27 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: restrict direct directory access...
« Reply #1 on: April 17, 2007, 01:10:06 am »

You can do this using .htaccess with this code

Code: [Select]
Options -Indexes
Put that in your albums directory.
Logged

SirKeats

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: restrict direct directory access...
« Reply #2 on: April 17, 2007, 06:51:57 pm »

sweet.  thanks!!!
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.