Skip to content
Permalink
Browse files

Disallow access to wp-cli

  • Loading branch information...
pierres committed Sep 7, 2019
1 parent a2d53ec commit c166dd6848421f52bf08c6f46ac558f9d50da41a
Showing with 1 addition and 1 deletion.
  1. +1 −1 vhosts.d/pierre-schmitz.com.conf
@@ -15,7 +15,7 @@ server {
add_header X-Xss-Protection "1; mode=block";
add_header Referrer-Policy "strict-origin-when-cross-origin";

location ~ ^/(wp-config\.php|wp-admin/includes/|wp-includes/[^/]+\.php|wp-includes/js/tinymce/langs/.+\.php|wp-includes/theme-compat/|wp-content/.+\.php) {
location ~ ^/(wp-cli|wp-config\.php|wp-admin/includes/|wp-includes/[^/]+\.php|wp-includes/js/tinymce/langs/.+\.php|wp-includes/theme-compat/|wp-content/.+\.php) {
deny all;
}

0 comments on commit c166dd6

Please sign in to comment.
You can’t perform that action at this time.