Disable XML-RPC - Version 1.0

Version Description

  • Initial release

=

Download this release

Release Info

Developer philerb
Plugin Icon wp plugin Disable XML-RPC
Version 1.0
Comparing to
See all releases

Version 1.0

Files changed (2) hide show
  1. disable-xml-rpc.php +30 -0
  2. readme.txt +47 -0
disable-xml-rpc.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Disable XML-RPC
4
+ Plugin URI: http://www.philerb.com/wp-plugins/
5
+ Description: This plugin disables XML-RPC API in WordPress 3.5+, which is enabled by default.
6
+ Version: 1.0
7
+ Author: Philip Erb
8
+ Author URI: http://www.philerb.com
9
+ License: GPLv2
10
+ */
11
+
12
+ /* Copyright 2012 Philip Erb (http://www.philerb.com/contact/)
13
+
14
+ This program is free software; you can redistribute it and/or
15
+ modify it under the terms of the GNU General Public License
16
+ as published by the Free Software Foundation; either version 2
17
+ of the License, or (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27
+ */
28
+
29
+ add_filter( 'xmlrpc_enabled', '__return_false' );
30
+ ?>
readme.txt ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: solvethenet, philerb
3
+ Donate link: http://www.philerb.com/wp-plugins/appreciation/
4
+ Tags: xmlrpc
5
+ Requires at least: 3.5
6
+ Tested up to: 4.1
7
+ Stable tag: 1.0
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ This plugin disables XML-RPC API in WordPress 3.5+, which is enabled by default.
12
+
13
+ == Description ==
14
+
15
+ Pretty simply, this plugin disables the XML-RPC API on a WordPress site running 3.5 or above.
16
+
17
+ Beginning in 3.5, XML-RPC is enabled by default. Additionally, the option to disable/enable XML-RPC was removed. For various reasons, site owners may wish to disable this functionality. This plugin provides an easy way to do so.
18
+
19
+ == Installation ==
20
+
21
+ 1. Upload the disable-xml-rpc directory to the `/wp-content/plugins/` directory in your WordPress installation
22
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
23
+ 1. XML-RPC is now disabled!
24
+
25
+ To re-enable XML-RPC, just deactivate the plugin through the 'Plugins' menu.
26
+
27
+ == Frequently Asked Questions ==
28
+
29
+ = Is there an admin interface for this plugin? =
30
+
31
+ No. This plugin is as simple as XML-RPC is off (plugin activated) or XML-RPC is on (plugin is deactivated).
32
+
33
+ = How do I know if the plugin is working? =
34
+
35
+ There are two easy methods for checking if XML-RPC is off. First, try using an XML-RPC client, like the official WordPress mobile apps. Or you can try the XML-RPC Validator, written by Danilo Ercoli of the Automattic Mobile Team - the tool is available at [http://xmlrpc.eritreo.it/](http://xmlrpc.eritreo.it/) with a blog post about it at [http://daniloercoli.com/2012/05/15/wordpress-xml-rpc-endpoint-validator/](http://daniloercoli.com/2012/05/15/wordpress-xml-rpc-endpoint-validator/).
36
+
37
+ == Screenshots ==
38
+
39
+ == Changelog ==
40
+
41
+ = 1.0 =
42
+ * Initial release
43
+
44
+ == Upgrade Notice ==
45
+
46
+ = 1.0 =
47
+ * Initial release