itinerisltd / itineris-disable-xml-rpc
Disable WordPress XML-RPC via actions and filters.
Installs: 33 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 13
Forks: 2
Open Issues: 1
Type:wordpress-plugin
Requires
- php: ^7.4 || ^8.0
This package is auto-updated.
Last update: 2024-10-23 21:40:46 UTC
README
- Goal
- Why disable WordPress XML-RPC?
- How?
- Requirements
- Installation
- Known Issues
- FAQs
- Feedback
- Change Log
- Security
- Credits
- License
Goal
Disable WordPress XML-RPC (i.e: /wp/xmlrpc.php
) via actions and filters.
Especially for those who can't control their servers, for example: Kinsta, WP Engine or other managed hosting.
Why disable WordPress XML-RPC?
- Kinsta: What is WordPress XML-RPC and How To Stop an Attack
- WPMU DEV: XML-RPC and Why It’s Time to Remove it for WordPress Security
- Sucuri: New Brute Force Attacks Exploiting XMLRPC in WordPress
- Incapsula: WordPress Default Leaves Millions of Sites Exploitable for DDoS Attacks
- LittleBizzy: How (And Why) To Disable WordPress XML-RPC
How?
Using actions and filters:
Disable all XML-RPC methods which require authentication.
Note: The name is misleading!
Remove all built-in/third-party XML-RPC methods.
Limit the number of elements to parse in an XML-RPC response. Thus, make most XML-RPC requests fail.
Requirements
- WordPress 4.9.8 or later
- PHP 7.0 or later
Installation
$ composer require itinerisltd/itineris-disable-xml-rpc
Alternative Installation
Upload itineris-disable-xml-rpc.php to wp-content/plugins
.
Known Issues
Incompatible Plugins
Unfortunately, some plugins still relying WordPress XML-RPC:
FAQs
Can I use this with Trellis?
Yes, but you have a better choice - trellis-disable-xml-rpc
This plugin is for those who can't control their servers, for example: Kinsta, WP Engine or other managed hosting.
Will you add support for older PHP versions?
Never! This plugin will only works on actively supported PHP versions.
Don't use it on end of life or security fixes only PHP versions.
It looks awesome. Where can I find some more goodies like this?
- Articles on Itineris' blog
- More projects on Itineris' GitHub profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to build your next awesome site
This isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?
Thanks! Glad you like it. It's important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning @itineris_ltd
- star this Github repo
- watch this Github repo
- write blog posts
- submit pull requests
- hire Itineris
Feedback
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Change Log
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.
Credits
Itineris Disable XML-RPC is a Itineris Limited project created by Tang Rufus.
Full list of contributors can be found here.
License
Itineris Disable XML-RPC is licensed under the GPLv2 (or later) from the Free Software Foundation. Please see License File for more information.