Sunday, October 12th, 2008 | Author: Angelo

Disable directory listings using .htaccess.

If you want to disable directory listing for any folder then simply create one file as .htaccess in that directory & insert rule IndexIgnore * in that file.

IndexIgnore * means directory will not list any file or folder. If you want to disable listing of .jpg files only then rule would be IndexIgnore *.jpg with this rule directory will list all files and folders excluding files with extension .jpg.

Category: apache
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply