How to prevent or allow directory listing? With .htaccess
How to prevent or allow directory listing?
Having a listable directories on your site sometimes is useful. However, some times it can be considered a security issue. No, matter which option you prefer you can control this behavior of your site using 1 simple line:
The .htaccess file gives more then simply enabling and disabling of a directory listing.
With .htaccess file you can control which files to be ignored when creating a directory list.
IndexIgnore *.gif *.zip *.txt
Convenient, isn’t it.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)