mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 14:07:27 +08:00
WordPress: fix CVE-2018-6389
This commit is contained in:
@@ -18,6 +18,11 @@ location ~* ^/wp-content/plugins/.*\.(?!{{ extensions.assets }}|{{ extensions.fo
|
||||
deny all;
|
||||
}
|
||||
|
||||
# disable scripts and styles concat
|
||||
location ~* \/wp-admin\/load-(?:scripts|styles)\.php {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# WordPress stuff
|
||||
location ~* ^/(?:xmlrpc\.php|wp-links-opml\.php|wp-config\.php|wp-config-sample\.php|wp-comments-post\.php|readme\.html|license\.txt)$ {
|
||||
deny all;
|
||||
|
Reference in New Issue
Block a user