DevOps

Disable WordPress XML-RPC in NGINX

Andrei Surdu Andrei Surdu ·

Locate your nginx configuration file and add the following rule in there.

location = /xmlrpc.php {
    deny all;
}

Save it and reload the nginx service.

Now the user will get a 403 Forbidden response.

Comments

Share your thoughts and join the conversation

Loading comments...

Leave a Comment

Your email will not be published

Comments are moderated and will appear after approval

0/2000