From: Grant Slater Date: Tue, 31 Mar 2015 23:00:39 +0000 (+0100) Subject: wordpress: Restrict access to a few version discovery vectors X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e38e912b2f2c25d0f76deb462695aaf58f8f397d wordpress: Restrict access to a few version discovery vectors --- diff --git a/cookbooks/wordpress/templates/default/apache.erb b/cookbooks/wordpress/templates/default/apache.erb index 95ea84ff7..200c50089 100644 --- a/cookbooks/wordpress/templates/default/apache.erb +++ b/cookbooks/wordpress/templates/default/apache.erb @@ -57,6 +57,7 @@ RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] RewriteRule ^wp-includes/theme-compat/ - [F,L] + RewriteRule ^readme\.html$ [F,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] @@ -85,6 +86,10 @@ Require all denied + + Require all denied + + Require all denied