Revert "block Wordpress XML-RPC endpoint"

This commit is contained in:
cloudpanel-io
2024-12-05 13:49:00 +01:00
committed by GitHub
parent 7b786f8283
commit cb67663b16
3 changed files with 3 additions and 15 deletions

View File

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

View File

@@ -27,10 +27,6 @@ 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;
@@ -114,4 +110,4 @@ server {
if (-f $request_filename) { if (-f $request_filename) {
break; break;
} }
} }

View File

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