block wordpress xmlrpc endpoint

This commit is contained in:
Kim Oliver Drechsel
2024-11-15 21:13:09 +01:00
committed by GitHub
parent 9aa666b723
commit 1cd09d13da

View File

@@ -27,6 +27,10 @@ server {
deny all; deny all;
} }
location = /xmlrpc.php {
deny all;
}
location ~/(wp-admin/|wp-login.php) { location ~/(wp-admin/|wp-login.php) {
#auth_basic "Restricted Area"; #auth_basic "Restricted Area";
#auth_basic_user_file /home/site-user/.htpasswd; #auth_basic_user_file /home/site-user/.htpasswd;