Merge pull request #42 from kimdre/patch-1

block Wordpress XML-RPC endpoint
This commit is contained in:
cloudpanel-io
2024-12-05 13:46:17 +01:00
committed by GitHub
3 changed files with 15 additions and 3 deletions

View File

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