Disable XML-RPC

Apraksts

Pretty simply, this plugin uses the built-in WordPress filter “xmlrpc_enabled” to disable the XML-RPC API on a WordPress site running 3.5 or above.

Sākot ar WordPress 3.5. versiju, XML-RPC ir iespējots pēc noklusējuma. Turklāt tika noņemta XML-RPC atspējošanas/iespējošanas iespēja. Dažādu iemeslu dēļ vietņu īpašnieki var vēlēties atspējot šo funkcionalitāti. Šis spraudnis ir vienkāršs veids, kā to izdarīt.

Ekrānuzņēmumi

  • An example of the error that the WordPress mobile app will return when this plugin is enabled. This is expected and indicates that the plugin is working as intended.
  • An example of a curl command attempting to request data via XML-RPC calls to the site when the plugin is enabled. The error "XML-RPC services are disabled on this site" is expected and indicates that the plugin is working as intended.
  • An example of Danilo Ercoli's XML-RPC validator run against the site when the plugin is enabled. The error "Method not allowed" is expected and indicates that the plugin is working as intended.

Uzstādīšana

  1. Augšupielādējiet disable-xml-rpc direktoriju savā WordPress instalācijas direktorijā /wp-content/plugins/
  2. Aktivizējiet spraudni, izmantojot WordPress izvēlni ‘Spraudņi’
  3. The WordPress XML-RPC methods are now disabled!

Lai atkārtoti iespējotu XML-RPC, vienkārši deaktivizējiet spraudni izvēlnē ‘Spraudņi’.

View the FAQ about “How do I know if the plugin is working?” to verify that this is working as intended.

BUJ

Vai šim spraudnim ir administratora saskarne?

Nē. Šis spraudnis ir ļoti vienkāršs. XML-RPC ir atspējots (spraudnis aktivizēts) vai XML-RPC ir ieslēgts (spraudnis ir deaktivizēts).

Kā zināt, vai spraudnis strādā?

There are a few easy methods for checking if XML-RPC is off:

  1. Try using an XML-RPC WordPress client, like the official WordPress mobile apps. The WordPress mobile app should tell you that “XML-RPC services are disabled on this site” if the plugin is activated.
  2. Use the curl command to send an XML-RPC request to your site. If the response contains “XML-RPC services are disabled on this site” then the plugin is working properly and WordPress will not send data back to XML-RPC requests.
  3. Try the XML-RPC Validator, written by Danilo Ercoli of the Automattic Mobile Team – the tool is available at https://xmlrpc-check.hostpress.me/. Information and source code for the tool are available on GitHub at https://github.com/daniloercoli/WordPress-XML-RPC-Validator. Keep in mind that you want the validator to fail and tell you that XML-RPC services are disabled.

See the screenshots for examples of what these tools will return when the plugin is enabled.

Izskatās, ka kaut kas nestrādā pareizi.

Ja spraudnis ir aktivizēts, bet XML-RPC joprojām darbojas… VAI… spraudnis ir deaktivizēts, bet XML-RPC nedarbojas, tad, iespējams, cita spraudņa vai dizaina funkcija ietekmē filtru xmlrpc_enabled. Turklāt servera konfigurācijas var bloķēt XML-RPC (t. i., bloķēt piekļuvi xmlrpc.php .htaccess failā).

Atsauksmes

10 februāris, 2024
It works perfectly on WordPress 6.4.3 (tested in 2 sites), without plugins conflict. See the tab FAQ to check that after instal, just test it on website quoted there: (xmlrpc-check) - if the test returns Fail on check xmlrpc the plugin worked. You can also run that test BEFORE instal the plugin to prove its work.
18 augusts, 2021
I have used this product on a dozen of the websites I have built and have had positive results without exception. This plugin simplifies the process of securing my websites by disabling XML-RPC, and has worked on all versions of WordPress I have used it with over the past couple of years. Great product, Highly recommended!
Lasīt 28 atsauksmes

Autori un izstrādātāji

“Disable XML-RPC” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Disable XML-RPC” savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0.1

  • Spraudņu failā noņemtas tukšas rindiņas.

1.0

  • Sākotnējā izlaide