{"id":1801,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/desactiver-xml-rpc\/"},"modified":"2025-01-01T15:44:02","modified_gmt":"2025-01-01T14:44:02","slug":"desactiver-xml-rpc","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/deactivate-xml-rpc\/","title":{"rendered":"Disable XML-RPC"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Disable XML-RPC in WordPress with WPMasterToolKit<\/h1>\n\n\n\n<p>WordPress' XML-RPC protocol enables external applications to communicate with your site, for example to publish content via tools such as the WordPress mobile app. However, this functionality is rarely used on most modern sites, and represents a potential security risk. With the <strong>Disable XML-RPC<\/strong> from WPMasterToolKit, you can easily disable this feature and strengthen your site's security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why disable XML-RPC?<\/h2>\n\n\n\n<p>Although XML-RPC was useful in the past, it is now often replaced by the WordPress REST API. Here are a few reasons why you might want to disable XML-RPC:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Reduce brute-force attacks<\/strong> XML-RPC: XML-RPC can be exploited by attackers to carry out massive login attempts, as it allows multiple passwords to be tested in a single request.<\/li>\n\n\n\n<li><strong>Protection against abuse<\/strong> Some vulnerabilities exploit XML-RPC to send pings or malicious requests, which can slow down your site or make it vulnerable.<\/li>\n\n\n\n<li><strong>Obsolete functionality<\/strong> : Most sites no longer use XML-RPC, especially since the introduction of the REST API in WordPress.<\/li>\n\n\n\n<li><strong>Simplified safety<\/strong> By completely disabling XML-RPC, you reduce your site's attack surface, making it easier to manage overall security.<\/li>\n\n\n\n<li><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How the Disable XML-RPC module works<\/h2>\n\n\n\n<p>The module <strong>Disable XML-RPC<\/strong> completely disables XML-RPC on your WordPress site. Here's how it works:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disabling XML-RPC<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The module uses the <code data-no-auto-translation=\"\">xmlrpc_enabled<\/code> to disable XML-RPC at source. This prevents all XML-RPC requests from being processed by WordPress.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Redirecting requests to a 403 error<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Any attempt to access XML-RPC (<code data-no-auto-translation=\"\">xmlrpc.php<\/code>) is immediately blocked with an HTTP 403 (Forbidden) response. This deters attackers and prevents misuse of this feature.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Minimalist, secure solution<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The module integrates directly with native WordPress filters, guaranteeing a lightweight, reliable method of disabling XML-RPC without affecting other site functionality.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Installation<\/strong> : Install and activate the plugin <strong>WPMasterToolKit<\/strong> on your WordPress site.<\/li>\n\n\n\n<li><strong>Module activation<\/strong> Go to the list of modules and activate \"Disable XML-RPC\".<\/li>\n\n\n\n<li><strong>Automation<\/strong> Once activated, the module immediately disables XML-RPC and blocks all associated requests.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"Error 403 access denied on tuto.local\" fetchpriority=\"high\" decoding=\"async\" width=\"502\" height=\"469\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-41.png\" class=\"wp-image-2927\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-41.png 502w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-41-300x280.png 300w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices for this module<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Using native filters<\/h3>\n\n\n\n<p>The module is based on filters <code data-no-auto-translation=\"\">xmlrpc_enabled<\/code> and <code data-no-auto-translation=\"\">wp_xmlrpc_server_class<\/code> to disable XML-RPC cleanly and efficiently.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">403 response for XML-RPC requests<\/h3>\n\n\n\n<p>Rather than letting XML-RPC requests fail or be ignored, the module returns a 403 (Forbidden) response, clearly indicating that functionality is disabled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lightweight and compatible<\/h3>\n\n\n\n<p>The code is minimalist, guaranteeing optimal performance and compatibility with future versions of WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Disable XML-RPC<\/strong> from WPMasterToolKit is an indispensable solution for strengthening the security of your WordPress site. By blocking XML-RPC, you protect your site against brute-force attacks and abuse linked to this obsolete functionality. Try it today to secure your site with a single click!<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Enhance the security of your WordPress site with WPMasterToolKit's Disable XML-RPC module. This module completely disables XML-RPC and blocks related requests, protecting your site against brute-force attacks and abuse. A simple, effective solution for securing your site!<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"S\u00e9curisez votre site WordPress en d\u00e9sactivant XML-RPC","_seopress_titles_desc":"Prot\u00e9gez votre site en d\u00e9sactivant XML-RPC, r\u00e9duisez les risques de s\u00e9curit\u00e9 et facilitez la gestion avec WPMasterToolKit.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1801","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}