Modify .htaccess ban Contents Index privacy

Usually the default Apache will allow directory indexing,This is very vulnerable to malicious use of people with ulterior motives。Many people choose to place the index.html file in the directory for this purpose,Because then it becomes open an empty file can not be indexed directory,But this, after all, a temporary solution - you can not give all of the directories to index a right?

If you can,Or you should modify the .htaccess file to achieve this objective,It can achieve very powerful,For example, redirection,For example, anti-hotlinking,For example, pseudo-static ............

In short,At the end of the .htaccess file on a separate line,Write the following code to disable the global catalog index,Thus,At least we can shield a possible attack。


Original article written by Gerber drop-off:R0uter's Blog » Modify .htaccess ban Contents Index privacy

Reproduced Please keep the source and description link:

About the Author


The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Leave a Reply

Your email address will not be published. Required fields are marked *