block Wordpress XML-RPC endpoint

This commit is contained in:
Kim Oliver Drechsel
2024-11-15 20:56:59 +01:00
committed by GitHub
parent a56b3ed165
commit 9740c848c5

View File

@@ -21,6 +21,10 @@ server {
allow all;
}
location = /xmlrpc.php {
deny all;
}
{{settings}}
try_files $uri $uri/ /index.php?$args;
@@ -58,4 +62,4 @@ server {
if (-f $request_filename) {
break;
}
}
}