Skip to content

Commit

Permalink
Disallow access to wp-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
pierres committed Sep 7, 2019
1 parent a2d53ec commit c166dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhosts.d/pierre-schmitz.com.conf
Expand Up @@ -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;
}

Expand Down

0 comments on commit c166dd6

Please sign in to comment.