fix: harden WordPress against WPScan findings

This commit is contained in:
bisco
2026-07-23 19:10:11 +02:00
parent 0762b98fc6
commit 472b8616b4
10 changed files with 74 additions and 6 deletions
+20
View File
@@ -18,6 +18,26 @@ location = /xmlrpc.php {
return 403;
}
location = /wp-cron.php {
return 403;
}
location = /readme.html {
return 404;
}
location = /license.txt {
return 404;
}
location = /wp-admin/install.php {
return 404;
}
location ^~ /wp-content/mu-plugins/ {
return 404;
}
location = /wp-login.php {
limit_req zone=login burst=5 nodelay;
proxy_pass http://wordpress_backend;