Log in

View Full Version : Blocking the /images/ folder?



Chris P. Bacon
04-13-2007, 03:54 PM
Hey,

When I try going into my Images folder from my browser (example: www.mysite.com/images/), I get some kind of overview of all the files in that folder, where anyone can see and download the files. Is there some way to block entrance into folders on my site, but still allows its content to be viewable on the website?

When I try access Image folders on other sites, I just get a blank page, or an "Access Denied" page. This is what I want too.

Any help would be very appreciated! :)

BLiZZaRD
04-13-2007, 03:56 PM
Add a blank index.html page. At least then your files won't be seen.

Chris P. Bacon
04-13-2007, 04:07 PM
So I simply put a blank index.html file into any folders that I dont want people to access? Because I got several folders on my site with important configuration files in them, and I dont want some idiot messing them up.

Twey
04-13-2007, 04:41 PM
That works, or you can remove read permission from the folders.

Chris P. Bacon
04-13-2007, 05:12 PM
Cool, thanks for the help guys! :D

Moglizorz
04-21-2007, 10:54 AM
You could also do a simple php redirect, if your server has php set up, if not a javascript redirect, to your homepage.