Toggle XML-RPC
Block or unblock XML-RPC access on a WordPress site.
POST/api/servers/{server}/sites/{id}/wordpress/toggle-xmlrpc
Toggle XML-RPC
Blocks or unblocks XML-RPC access via nginx configuration. XML-RPC is a common attack vector for brute-force and DDoS attacks.
Required attributes
- Name
block- Type
- boolean
- Description
Set to
trueto block XML-RPC,falseto unblock.
Request
POST
/api/servers/{server}/sites/{id}/wordpress/toggle-xmlrpccurl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/toggle-xmlrpc" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"block": true}'
Response
{
"status": "ok",
"message": "XML-RPC has been blocked."
}