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。
Options All -Indexes
Reproduced Please keep the source and description link：https://www.logcg.com/archives/978.html