Options +IndexesThis enables Directory listing.
Options –IndexesThis disables directory listing for your web site.
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.
For example:
IndexIgnore *.doc *.gif *.zip *.txtWill make the apache server to skip all doc, gif, zip and txt files from the directory list.
IndexIgnore *Will just create an empty directory list.
Blank index file can also be used for disabling the directory listing, but it is much tedious cause we need to put it in each and every folder. So using .htaccess is much handy for the purpose.


