From 1cd09d13da07cce0c5c5cfc69523cb94682f7bc1 Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Fri, 15 Nov 2024 21:13:09 +0100 Subject: [PATCH] block wordpress xmlrpc endpoint --- v2-varnish/WordPress/WordPress | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2-varnish/WordPress/WordPress b/v2-varnish/WordPress/WordPress index ac50838..a929c33 100644 --- a/v2-varnish/WordPress/WordPress +++ b/v2-varnish/WordPress/WordPress @@ -27,6 +27,10 @@ server { deny all; } + location = /xmlrpc.php { + deny all; + } + location ~/(wp-admin/|wp-login.php) { #auth_basic "Restricted Area"; #auth_basic_user_file /home/site-user/.htpasswd; @@ -110,4 +114,4 @@ server { if (-f $request_filename) { break; } -} \ No newline at end of file +}