mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 16:33:30 +08:00
block wordpress xmlrpc endpoint
This commit is contained in:
committed by
GitHub
parent
9aa666b723
commit
1cd09d13da
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user