Changeset 3200611
- Timestamp:
- 12/02/2024 07:04:52 AM (15 months ago)
- Location:
- manage-xml-rpc
- Files:
-
- 3 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/manage-xml-rpc.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/manage-xml-rpc.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
manage-xml-rpc/trunk/manage-xml-rpc.php
r3172826 r3200611 4 4 * Plugin URI: http://www.brainvire.com 5 5 * Description: Disable XML-RPC for IP-specific control and disable XML-RPC Pingback method. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: brainvireinfo 8 8 * Author URI: http://www.brainvire.com 9 9 * License: GPL2 10 * Text Domain: manage-xml-rpc 10 11 * 11 12 * @package manage-xml-rpc … … 320 321 add_filter( 'mod_rewrite_rules', 'mxr_htaccess_contents' ); 321 322 323 /** 324 * Fallback for disabling the xmlrpc if .htaccess not working 325 * 326 * @param string $class The name of the XML-RPC server class. 327 * @return string The same class name if conditions doesn't match. 328 */ 329 function mxr_disable_wp_xmlrpc($class) 330 { 331 if ( esc_attr( get_option( 'allow_disallow' ) ) == 'disallow' ) { 332 http_response_code(403); 333 exit("Access Forbidden! You don't have permission to access this file."); 334 } 335 return $class; 336 } 337 add_filter('wp_xmlrpc_server_class', 'mxr_disable_wp_xmlrpc'); 338 322 339 /** 323 340 * Extracts a specific section from an array of .htaccess rules. -
manage-xml-rpc/trunk/readme.txt
r3172850 r3200611 1 === Plugin Name===1 === Manage XML-RPC === 2 2 Contributors: brainvireinfo 3 3 Donate link: http://www.brainvire.com 4 Tags: xmlrpc,security, xmlrpc.php attack, brute force attacks, xml-rpc pingback, block xml-rpc4 Tags: security, xmlrpc.php attack, brute force attacks, xml-rpc pingback, block xml-rpc 5 5 Requires at least: 4.0 6 Tested up to: 6. 67 Stable tag: 5.36 Tested up to: 6.7.1 7 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 46 46 == Changelog == 47 47 48 = 1.0.2 = 49 1. Fixed bugs and conducted compatibility checks with the latest WordPress version 6.7.1. 50 2. Resolved warnings and errors identified during the compatibility assessment. 51 48 52 = 1.0.1 = 49 53 * Beta release with basic testing.
Note: See TracChangeset
for help on using the changeset viewer.