I am trying to secure my wordpress site through htaccess - By blocking php files from folders.
Example:
- Deny all php files in wp-content
- Allow php files in in wp-admin and wp-includes
- On home directory, allow index.php and allow all files with wp and deny all.
So Far:
Deny wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>
Run only certain files (but i cant get directory to work on this level)
Order deny,allow
Deny from all
<Files ~ ".(xml|css|jpe?g|png|gif|js)$">
Allow from all
</Files>