samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Insert blank index.html into gallery folders on creation #450

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to be able to stop users to do a directory listing in the gallery 
folders created by NGG.

At the moment, users can easily find out the path of an image from the source 
code. When you enter the path of an image in the browser you are able to see 
the entire directory content in the browser. 

It would be great if NGG could create a blank index.html file in the gallery, 
cache and thumbs folders automatically when the folders are created. I think 
the blank html file is the easiest way, but other possibilities could be: 
Redirection to gallery overview page, a 403 error, a 404 error. 

Original issue reported on code.google.com by d.suedk...@googlemail.com on 18 Dec 2011 at 10:22

GoogleCodeExporter commented 8 years ago
This can also be handled by a .htaccess file in the gallery folder containing 
the line 
"options -indexes"

Then you will get a 403 error when trying to access the gallery folders 
directly. This solution seems easier to me, but I don't know if it has any down 
sides.

Original comment by kristian...@gmail.com on 8 Jan 2012 at 12:17