To disable the Directory listing for folders you need to create the .htaccess file under the each an every folder under which you want to disable the Directory listing and insert the following code in .htaccess file.
Quote:
Options -Indexes
It will disable the directory listing for your folders and redirect to your 403 error page
This is an excellent tip. Thank you for making this available. I've been trying to find something online to help me with this issue for a while now when I should have been looking here all along.
I thought that a blank index file just hid the contents from view on the web? Does the tip provided hide the folders themselves from showing up in peoples Internet browsers?
if you want to hide the directory contents, and not to redirect the user to a live page you could show a blank directory page by simply hiding the contents of the directory using the part of the tutorial located at:
Thanks - you made me remember about something I was going to do to my sites about a year ago, and totally forgot about - it was the thing that has been niggling at the back of my mind every time I was logged into my site. Just off to make a .htaccess in every folder (I have them in a few places to stop google indexing where its not meant to but I should go and double check)