• Resolved GregW

    (@gwmbox)


    When the xmlrpc file is set to be disabled, what should the page show when it is disabled? When I access /xmlrpc.php it is showing “XML-RPC server accepts POST requests only”.

    Should it show a 404 or 300 error instead?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Simeon Boev

    (@k3llanved)

    Hello @gwmbox,

    The feature to restrict access to the file in question is implemented via the .htaccess file. The rule in question is the following one:

    <Files xmlrpc.php>
    order allow,deny
    deny from all
    </Files>

    The default response will be 403 unless you use a custom configuration of some sort.

    Best Regards,

    Simeon Boev

    Thread Starter GregW

    (@gwmbox)

    Tried that and that does not work, possibly due to using an OpenLiteSpeed server?

    Thread Starter GregW

    (@gwmbox)

    Had to use

    add_filter( 'xmlrpc_enabled', '__return_false' );

    EDIT that didn’t work either 🙁

    • This reply was modified 2 years, 7 months ago by GregW.
    Plugin Support Daniela Ivanova

    (@daniellaivanova)

    Hello @gwmbox,

    Indeed, the approach that the Speed Optimizer uses to restrict access to the xmlrpc.php file is by adding the necessary directives into an .htaccess file.

    I noticed that your website is hosted on a server that runs OpenLiteSpeed server and I would recommend you to contact your hosting provider and ask them to reconfigure the web server so it can load the .htaccess files and read the directives in it.

    This way you would be able to use our plugin’s feature.

    Best Regards,
    Daniela Ivanova

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Message when xml-rpc is disabled?’ is closed to new replies.