Disable WordPress XML-RPC in NGINX

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.

Member since January 2, 2019

Fullstack Web Developer with more than 12 years of experience in web development. Adept in all stages of advanced web development. Knowledgeable in the user interface, backend, testing, and debugging processes. Bringing forth expertise in design, installation, testing, and maintenance of web systems. Working exclusively and professionally with WordPress since 2010.


    Your email address will not be published. Required fields are marked *