mirror of
https://gh.wpcy.net/https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-04-24 05:09:10 +08:00
16 lines
359 B
PHP
16 lines
359 B
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Disable pingback revealing real IP address behind a firewall or proxy
|
|
* Plugin URI: https://www.netsparker.com/blog/web-security/xml-rpc-protocol-ip-disclosure-attacks/
|
|
*/
|
|
|
|
add_filter(
|
|
'xmlrpc_methods',
|
|
static function ($methods) {
|
|
unset($methods['pingback.ping']);
|
|
return $methods;
|
|
},
|
|
11,
|
|
1
|
|
);
|