block wordpress xmlrpc endoint

This commit is contained in:
Kim Oliver Drechsel
2024-11-15 21:12:11 +01:00
committed by GitHub
parent 9740c848c5
commit 9aa666b723

View File

@@ -31,6 +31,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;
@@ -117,4 +121,4 @@ server {
if (-f $request_filename) { if (-f $request_filename) {
break; break;
} }
} }