Security improvement: Add an an empty index.php file to /wp-content/, /wp-content/plugins/, /wp-content/themes/ and /wp-content/uploads/ directories on installing
-
Can you add an empty
index.php
file to/wp-content/
,/wp-content/plugins/
,/wp-content/themes/
and/wp-content/uploads/
directories on installation, please?This then prevents scanners from listing the contents of these directories.
I can't think of any downsides to this, either for initial setups, or in addition to existing setups.
-
@marcusquinn Oh, file indexing should not be possible by default.
That would be an oversight and not intended.I just installed a fresh wp-dev and there is an
index.php
in/wp-content/
plugins
andthemes
.
uploads
is missing anindex.php
.
But also theuploads
folder is giving me a 403 forbidden.can you check if your wp-dev is fresh or historical?
-
@BrutalBirdie You're right, directory browsing is blocked at the server level. I just spotted these missing files and thought a simple no-harm way to cover the same for all instances.
-
-