Fix for Jetpack xml-rpc

Home Forums Support Forum Fix for Jetpack xml-rpc

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Anti-Malware Admin 6 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1983

    After I set GOTMLS to block XML-RPC, Jetpack lost connection between my site and WordPress. I found the answer on somebody’s blog (I wish I could remember whose!)
    You need to put this in your .htaccess file:

    <Files xmlrpc.php>
    Order Deny,Allow
    Deny from all
    Allow from wordpress.com
    Allow from 192.0.64.0/18
    Satisfy All
    </Files>

    After this, you can let the plugin block XML-RPC requests, WordPress will still be able to do its thing.

    Check your Jetpack connection here: https://jetpack.com/support/debug/

    • This topic was modified 6 years, 11 months ago by  Cherry Austin.
    #1985

    Anti-Malware Admin
    Key Master

    Thanks for posting this helpful code. As a shortcut you could just apply the patch, which would insert the whole Files tag, then you would just need to add the Allow lines for any domains and IPs you want to allow.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.