Help adding index.php to ALL directories for security
-
Hi,
I’ve been reading a few articles about securing WordPress from getting hacked.
I’ve already implemented some security measures but I’d like to add the following 2 security measures also. Could someone tell me if these 2 will work fine?
1. Add the following to your .htaccess file:
`# prevent directory browsing
Options -IndexesOrder Allow,Deny
Deny from all`2. Add index.php to ALL folders
By default, wp-admin, wp-content and plugins folders have an index.php file. However, wp-includes, uploads and upgrade folders don’t have index.php. And my 2012 child theme doesn’t contain an index.php file either. Is it ok if I add an index.php file to all of these directories including the 2012 child theme and other themes?
Awaiting a reply,
Thanks
- The topic ‘Help adding index.php to ALL directories for security’ is closed to new replies.