|
Prevent Directory Browsing with IndexIgnoreIn many webhosts, if an user navigates to a directory where you did not have an index.html file, then the browser will list all the files in that directory. To prevent this listing, you can edit the .htaccess file to add the line ... IndexIgnore * assuming that your host is running Apache. The line is case-sensitve, so type in the capitalization as shown. This says to not list any files. If you edit the root .htaccess file, it will affect all subdirectories as well. If you want to apply to a subdirectory only, then you have to add a .htaccess file to that subdirectory and edit that. To learn more about the IndexIgnore directive, follow this weblink.
|

