apache - Is it necessary to hang a blank index.html after directory browsing permission is turned off?
给我你的怀抱
给我你的怀抱 2017-05-16 17:03:38
0
3
683

Apache turns on the directory browsing permission by default (I installed independent Appche 2.2 and XAMPP under Windows and both turned it on, and I don’t know much about other versions). At the same time I noticed

WordPress places a blank index.php in some directories:

<?php
// Silence is golden.

Typecho does not have it.

Today I had a "dispute" with my friends in the group: After turning off the directory browsing permission, is it necessary to hang a blank index.html?

给我你的怀抱
给我你的怀抱

reply all(3)
过去多啦不再A梦

Thanks for the invitation, I haven’t been to SF in a long time.
From a security perspective, I personally think it’s okay to have one or not. After all, it won’t affect the normal operation of the website program. But if the environment deployment is not handled safely, some "big black and wide" incidents can still be avoided to a certain extent index.html-

迷茫

Theoretically it is not necessary.
Hanging a blank index.html is probably to prevent forgetting to set directory permissions after deploying a new environment

世界只因有你

I think it is necessary.

What if I accidentally open it one day in the future? What if I change the environment in the future?

Be prepared and prepare for a rainy day

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template