{"id":55973,"date":"2024-10-10T07:42:14","date_gmt":"2024-10-09T23:42:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/55973\/"},"modified":"2024-10-10T07:42:14","modified_gmt":"2024-10-09T23:42:14","slug":"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e7%a6%81%e7%94%a8%e5%bc%95%e7%94%a8%e9%80%9a%e5%91%8a%e5%92%8c-pingback-%e4%bb%a5%e9%98%b2%e6%ad%a2-ddos-%e6%94%bb%e6%93%8a%e3%80%82","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/55973\/","title":{"rendered":"WordPress \u6559\u7a0b\uff1a\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback \u4ee5\u9632\u6b62 DDoS \u653b\u64ca\u3002"},"content":{"rendered":"<h1 id=\"wordpress-%e6%95%99%e7%a8%8b%ef%bc%9a%e7%a6%81%e7%94%a8%e5%bc%95%e7%94%a8%e9%80%9a%e5%91%8a%e5%92%8c-pingback-%e4%bb%a5%e9%98%b2%e6%ad%a2-ddos-%e6%94%bb%e6%93%8a-hoKJKuwKxj\">WordPress \u6559\u7a0b\uff1a\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback \u4ee5\u9632\u6b62 DDoS \u653b\u64ca<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u7db2\u7ad9\u5b89\u5168\u6027\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u7279\u5225\u662f\u5c0d\u65bc\u4f7f\u7528 WordPress \u5e73\u53f0\u7684\u7db2\u7ad9\uff0cDDoS\uff08\u5206\u6563\u5f0f\u62d2\u7d55\u670d\u52d9\uff09\u653b\u64ca\u53ef\u80fd\u6703\u5c0d\u7db2\u7ad9\u7684\u53ef\u7528\u6027\u9020\u6210\u56b4\u91cd\u5f71\u97ff\u3002\u9019\u7bc7\u6587\u7ae0\u5c07\u63a2\u8a0e\u5982\u4f55\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback\uff0c\u4ee5\u6e1b\u5c11 DDoS \u653b\u64ca\u7684\u98a8\u96aa\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e5%bc%95%e7%94%a8%e9%80%9a%e5%91%8a%e5%92%8c-pingback%ef%bc%9f-hoKJKuwKxj\">\u4ec0\u9ebc\u662f\u5f15\u7528\u901a\u544a\u548c pingback\uff1f<\/h2>\n<p>\u5f15\u7528\u901a\u544a\u548c pingback \u662f WordPress \u7684\u5169\u500b\u529f\u80fd\uff0c\u65e8\u5728\u4fc3\u9032\u7db2\u7ad9\u4e4b\u9593\u7684\u4e92\u52d5\u3002\u7576\u4e00\u500b\u7db2\u7ad9\u5f15\u7528\u4e86\u53e6\u4e00\u500b\u7db2\u7ad9\u7684\u5167\u5bb9\u6642\uff0c\u5f15\u7528\u901a\u544a\u6703\u81ea\u52d5\u751f\u6210\uff0c\u4e26\u901a\u77e5\u539f\u59cb\u7db2\u7ad9\u3002\u800c pingback \u5247\u662f\u4e00\u7a2e\u66f4\u70ba\u81ea\u52d5\u5316\u7684\u901a\u77e5\u65b9\u5f0f\uff0c\u7576\u4e00\u500b\u7db2\u7ad9\u93c8\u63a5\u5230\u53e6\u4e00\u500b\u7db2\u7ad9\u6642\uff0c\u5f8c\u8005\u6703\u6536\u5230\u901a\u77e5\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e8%a6%81%e7%a6%81%e7%94%a8%e5%bc%95%e7%94%a8%e9%80%9a%e5%91%8a%e5%92%8c-pingback%ef%bc%9f-hoKJKuwKxj\">\u70ba\u4ec0\u9ebc\u8981\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback\uff1f<\/h2>\n<p>\u96d6\u7136\u9019\u4e9b\u529f\u80fd\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\u662f\u6709\u7528\u7684\uff0c\u4f46\u5b83\u5011\u4e5f\u53ef\u80fd\u6210\u70ba DDoS \u653b\u64ca\u7684\u6f5b\u5728\u76ee\u6a19\u3002\u653b\u64ca\u8005\u53ef\u4ee5\u5229\u7528\u9019\u4e9b\u529f\u80fd\u767c\u9001\u5927\u91cf\u7684\u8acb\u6c42\uff0c\u5c0e\u81f4\u7db2\u7ad9\u8cc7\u6e90\u8017\u76e1\uff0c\u6700\u7d42\u4f7f\u7db2\u7ad9\u7121\u6cd5\u8a2a\u554f\u3002\u4ee5\u4e0b\u662f\u7981\u7528\u9019\u4e9b\u529f\u80fd\u7684\u4e00\u4e9b\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u6e1b\u5c11\u4f3a\u670d\u5668\u8ca0\u64d4\uff1a<\/strong>\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback \u53ef\u4ee5\u6e1b\u5c11\u4f3a\u670d\u5668\u9700\u8981\u8655\u7406\u7684\u8acb\u6c42\u6578\u91cf\uff0c\u5f9e\u800c\u63d0\u9ad8\u7db2\u7ad9\u7684\u7a69\u5b9a\u6027\u3002<\/li>\n<li><strong>\u9632\u6b62\u5783\u573e\u4fe1\u606f\uff1a<\/strong>\u9019\u4e9b\u529f\u80fd\u6709\u6642\u6703\u88ab\u7528\u4f86\u767c\u9001\u5783\u573e\u4fe1\u606f\uff0c\u7981\u7528\u5b83\u5011\u53ef\u4ee5\u6e1b\u5c11\u9019\u985e\u554f\u984c\u3002<\/li>\n<li><strong>\u63d0\u9ad8\u5b89\u5168\u6027\uff1a<\/strong>\u901a\u904e\u7981\u7528\u9019\u4e9b\u529f\u80fd\uff0c\u53ef\u4ee5\u964d\u4f4e\u7db2\u7ad9\u53d7\u5230\u653b\u64ca\u7684\u98a8\u96aa\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e7%a6%81%e7%94%a8%e5%bc%95%e7%94%a8%e9%80%9a%e5%91%8a%e5%92%8c-pingback-hoKJKuwKxj\">\u5982\u4f55\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback<\/h2>\n<p>\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback \u7684\u65b9\u6cd5\u76f8\u5c0d\u7c21\u55ae\uff0c\u4ee5\u4e0b\u662f\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e9%80%9a%e9%81%8e-wordpress-%e8%a8%ad%e5%ae%9a%e7%a6%81%e7%94%a8-hoKJKuwKxj\">1. \u901a\u904e WordPress \u8a2d\u5b9a\u7981\u7528<\/h3>\n<p>\u60a8\u53ef\u4ee5\u901a\u904e WordPress \u7684\u5f8c\u53f0\u8a2d\u7f6e\u4f86\u7981\u7528\u9019\u4e9b\u529f\u80fd\uff1a<\/p>\n<ol>\n<li>\u767b\u9304\u5230\u60a8\u7684 WordPress \u5f8c\u53f0\u3002<\/li>\n<li>\u5c0e\u822a\u5230\u300c\u8a2d\u5b9a\u300d&gt;\u300c\u8a0e\u8ad6\u300d\u3002<\/li>\n<li>\u5728\u300c\u5176\u4ed6\u9078\u9805\u300d\u90e8\u5206\uff0c\u53d6\u6d88\u9078\u4e2d\u300c\u5141\u8a31\u5f15\u7528\u901a\u544a\uff08pingback\uff09\u5f9e\u5176\u4ed6\u6587\u7ae0\u300d\u7684\u9078\u9805\u3002<\/li>\n<li>\u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ol>\n<h3 id=\"2-%e4%bd%bf%e7%94%a8%e4%bb%a3%e7%a2%bc%e7%a6%81%e7%94%a8-hoKJKuwKxj\">2. \u4f7f\u7528\u4ee3\u78bc\u7981\u7528<\/h3>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u901a\u904e\u4ee3\u78bc\u4f86\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback\uff0c\u53ef\u4ee5\u5c07\u4ee5\u4e0b\u4ee3\u78bc\u6dfb\u52a0\u5230\u4e3b\u984c\u7684 functions.php \u6587\u4ef6\u4e2d\uff1a<\/p>\n<pre><code>\nfunction disable_pingbacks() {\n    if ( !is_single() ) {\n        remove_action( 'wp_insert_comment', 'wp_notify_postauthor' );\n    }\n}\nadd_action( 'wp', 'disable_pingbacks' );\n\nfunction disable_xmlrpc_pingback( $methods ) {\n    unset( $methods['pingback.ping'] );\n    return $methods;\n}\nadd_filter( 'xmlrpc_methods', 'disable_xmlrpc_pingback' );\n<\/code><\/pre>\n<h2 id=\"%e7%b5%90%e8%ab%96-hoKJKuwKxj\">\u7d50\u8ad6<\/h2>\n<p>\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback \u662f\u63d0\u9ad8 WordPress \u7db2\u7ad9\u5b89\u5168\u6027\u7684\u4e00\u500b\u6709\u6548\u63aa\u65bd\u3002\u901a\u904e\u6e1b\u5c11\u4f3a\u670d\u5668\u8ca0\u64d4\u548c\u9632\u6b62\u5783\u573e\u4fe1\u606f\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u4fdd\u8b77\u60a8\u7684\u7db2\u7ad9\u514d\u53d7 DDoS \u653b\u64ca\u7684\u5a01\u8105\u3002\u96a8\u8457\u7db2\u7d61\u5b89\u5168\u554f\u984c\u7684\u65e5\u76ca\u56b4\u91cd\uff0c\u7db2\u7ad9\u7ba1\u7406\u8005\u61c9\u8a72\u5b9a\u671f\u6aa2\u67e5\u548c\u66f4\u65b0\u5b89\u5168\u8a2d\u7f6e\uff0c\u4ee5\u78ba\u4fdd\u7db2\u7ad9\u7684\u7a69\u5b9a\u904b\u884c\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u548c\u5176\u4ed6\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u5982\u4f55\u5728 WordPress \u4e2d\u7981\u7528\u5f15\u7528\u901a\u544a\u548c pingback\uff0c\u4ee5\u6709\u6548\u9632\u6b62 DDoS \u653b\u51fb\uff0c\u4fdd\u62a4\u60a8\u7684\u7f51\u7ad9\u5b89\u5168\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-55973","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/55973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=55973"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/55973\/revisions"}],"predecessor-version":[{"id":55974,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/55973\/revisions\/55974"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=55973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=55973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=55973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}