Viewing Subfolders Viewing Subfolders
 

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

Viewing Subfolders

Started by kprescott, September 22, 2010, 08:51:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kprescott

I really was not sure where to post this or even where to look for the answer (although I have tried to find it). How can I make it so that the subfolders in my gallery are not viewable. For instance: domain.com/albums/events --- if someone types in the address, they're able to view all of my folders and files (even though I have the gallery set to register for anyone to view files). How can I make it so when they type in the subfolder address, it sends them back to the main page?

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

kprescott

Sure, sorry about that.

http://gettofuck.com/nowuknow/
That's a link to my gallery. As you can see you have to register for access. But if you link directly to the subfolder: http://gettofuck.com/nowuknow/albums/events/
you're able to click on folders and images. How can I make it so that people are unable to see the subfolders and they're re-routed directly back to the mainpage?

Jeff Bailey

I thought you meant though Coppermine. Your asking how to stop directory browsing.
That really isn't what this forum is for but asking your host or a search (turn off directory listing) on Google will give you a few options.

One says add
Options -Indexes
to your .htaccess file.

You would put that .htaccess file in the nowuknow/ dir.

<!--Coppermine Photo Gallery 1.4.26 (stable)-->
You need to at least upgrade to 1.4.27

1.5.8 blocks directory browsing automatically if you decide to upgrade to 1.5.x as support for 1.4.x ends in December.



Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford