mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
block wordpress xmlrpc endoint
This commit is contained in:
committed by
GitHub
parent
9740c848c5
commit
9aa666b723
@@ -31,6 +31,10 @@ 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;
|
||||||
@@ -117,4 +121,4 @@ server {
|
|||||||
if (-f $request_filename) {
|
if (-f $request_filename) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user