{"id":52,"date":"2022-06-20T04:56:15","date_gmt":"2022-06-20T04:56:15","guid":{"rendered":"https:\/\/blog.trustedhosting.in\/?p=52"},"modified":"2022-10-01T16:32:58","modified_gmt":"2022-10-01T16:32:58","slug":"how-to-block-xmlrpc-attacks-at-cpanel","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-block-xmlrpc-attacks-at-cpanel\/","title":{"rendered":"How to block xmlrpc attacks at cpanel"},"content":{"rendered":"<p>xmlrpc.com is a WordPress file that was intended to be used for API\u2019s but lately it\u2019s more and more used as a way for hackers to brute-force WordPress installations.<\/p>\n<p>To block access to xmlrpc.php on a single WordPress installation add the following code to your .htaccess file:<\/p>\n<blockquote>\n<pre class=\"wp-block-code copy-the-code-target\"><code># Block XML-RPC\r\n&lt;Files xmlrpc.php&gt;\r\norder deny,allow\r\ndeny from all\r\nallow from 127.0.0.1,\r\n&lt;\/Files&gt;\r\n# END WordPress<\/code><button class=\"copy-the-code-button\" title=\"Copy to Clipboard\" data-style=\"button\">Copy<\/button><\/pre>\n<\/blockquote>\n<div class=\"wp-block-spacer\" aria-hidden=\"true\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>xmlrpc.com is a WordPress file that was intended to be used for API\u2019s but lately it\u2019s more and more used&hellip;<\/p>\n","protected":false},"author":1,"featured_media":90,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[6,7],"class_list":["post-52","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-latest-updates","tag-how-to-block-xmlrpc-attacks-at-cpanel","tag-xmlrpc-block-in-cpanel"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":2,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/52\/revisions\/55"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/90"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}