two-fa
9 months ago
vulnerabilities
1 year ago
block-code-execution-uploads.php
2 years ago
disable-xmlrpc.php
2 years ago
display-name-is-login-name.php
2 years ago
file-editing.php
1 year ago
hide-wp-version.php
2 years ago
index.php
2 years ago
prevent-login-info-leakage.php
2 years ago
rename-admin-user.php
1 year ago
rest-api.php
2 years ago
user-enumeration.php
1 year ago
user-registration.php
2 years ago
vulnerabilities.php
9 months ago
disable-xmlrpc.php
24 lines
| 1 | <?php |
| 2 | defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); |
| 3 | |
| 4 | /** |
| 5 | * Disable XMLRPC when this integration is activated |
| 6 | */ |
| 7 | |
| 8 | add_filter('xmlrpc_enabled', '__return_false'); |
| 9 | /** |
| 10 | * Remove html link |
| 11 | */ |
| 12 | remove_action( 'wp_head', 'rsd_link' ); |
| 13 | /** |
| 14 | * stop all requests to xmlrpc.php for RSD per XML-RPC: |
| 15 | */ |
| 16 | if ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) |
| 17 | exit; |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 |