wordpress - 如何通过 XML-RPC 保护 WordPress 免受 DDoS 攻击

标签 wordpress

我在谷歌搜索中发现的最好的是

add_filter( ‘xmlrpc_methods’, function( $methods ) {
   unset( $methods['pingback.ping'] );
   return $methods;
} );

还有比阻止 pingback.ping 更好的解决方案吗?

最佳答案

来自Protect WordPress from DDoS attack on Pingbacks :

They also offered two solutions for stopping your WordPress website from being used to attack others. The third one below is my suggestion.

  1. Turn off / disable notifications in your WordPress admin settings
  2. Add the following code to your functions.php file (not for novices)

    add_filter( ‘xmlrpc_methods’, function( $methods ) {
       unset( $methods['pingback.ping'] );
       return $methods;
    } );
    

关于wordpress - 如何通过 XML-RPC 保护 WordPress 免受 DDoS 攻击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22335675/

相关文章:

php - 将 Woocommerce 商店变成地理定位国家/地区的目录?

mysql - WordPress 循环 : Grouping by category?

categories - 从自定义帖子类型循环/存档中排除类别

mySQL查询错误无法更新FROM子句

css - 屏幕宽度达到 800 像素后, Bootstrap 中显示的水平条

wordpress - 在 Wordpress 中重写(翻译)URL 的分页部分

php - 为什么一些著名的程序总是使用打印

css - 在 Wordpress 中自定义我的画廊

css - Wordpress 跳出模板

php - 如何在 WordPress 中显示字段的值?PHP