{"id":2904,"date":"2025-06-11T08:54:17","date_gmt":"2025-06-11T00:54:17","guid":{"rendered":"https:\/\/www.zhaozhao123.cn\/wpcms\/wpdt\/2904.html"},"modified":"2025-06-11T08:54:17","modified_gmt":"2025-06-11T00:54:17","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-wordpress-%e4%b8%ad%e7%a6%81%e7%94%a8%e8%87%aa%e6%88%91-pingback%ef%bc%88%e5%88%86%e6%ad%a5%e6%8c%87%e5%8d%97%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.zhaozhao123.cn\/wpcms\/post\/2904.html","title":{"rendered":"\u5982\u4f55\u5728 WordPress \u4e2d\u7981\u7528\u81ea\u6211 Pingback\uff08\u5206\u6b65\u6307\u5357\uff09"},"content":{"rendered":"<div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--1\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/dyA-1-400x300.jpg\" alt=\"Bug&#32534;&#35793;&#29422;\" class=\"wp-image-1842\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">Bug&#32534;&#35793;&#29422;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#22312;WordPress&#20013;&#31105;&#29992;&#33258;&#25105;Pingback&#26159;&#19968;&#31181;&#20445;&#25252;&#32593;&#31449;&#20813;&#21463;&#24694;&#24847;&#33258;ping&#30340;&#25514;&#26045;&#12290;&#36825;&#31181;&#21151;&#33021;&#20801;&#35768;&#31649;&#29702;&#21592;&#38459;&#27490;&#29305;&#23450;IP&#22320;&#22336;&#25110;&#22495;&#21517;&#23545;&#33258;&#36523;&#39029;&#38754;&#30340;Pingback&#35831;&#27714;&#12290;&#19979;&#38754;&#25105;&#23558;&#25351;&#23548;&#24744;&#22914;&#20309;&#22312;WordPress&#20013;&#21551;&#29992;&#27492;&#21151;&#33021;&#12290;<\/p>\n<h3>&#27493;&#39588; 1: &#30331;&#24405;&#21040;&#24744;&#30340; WordPress &#31649;&#29702;&#21518;&#21488;<\/h3>\n<p>&#39318;&#20808;&#65292;&#30331;&#24405;&#21040;&#24744;&#30340;WordPress&#31649;&#29702;&#21518;&#21488;&#12290;&#36890;&#24120;&#65292;&#36825;&#26159;&#36890;&#36807;&#27983;&#35272;&#22120;&#20013;&#30340;<code>https:\/\/yourdomain.com\/wp-admin\/<\/code>&#26469;&#35775;&#38382;&#30340;&#12290;<\/p>\n<h3>&#27493;&#39588; 2: &#36827;&#20837;&#35774;&#32622;&#36873;&#39033;<\/h3>\n<p>&#28857;&#20987;&#24038;&#20391;&#33756;&#21333;&#26639;&#20013;&#30340;&ldquo;&#35774;&#32622;&rdquo;(Settings)&#65292;&#28982;&#21518;&#36873;&#25321;&ldquo;&#19968;&#33324;&rdquo;(General)&#12290;<\/p>\n<h3>&#27493;&#39588; 3: &#35843;&#25972; Pingback &#37197;&#32622;<\/h3>\n<p>&#22312;&ldquo;&#19968;&#33324;&rdquo;&#35774;&#32622;&#39029;&#38754;&#19979;&#65292;&#25214;&#21040;&#24182;&#28857;&#20987;&ldquo;Pingback&rdquo;&#26631;&#31614;&#39029;&#12290;&#22312;&#36825;&#37324;&#65292;&#24744;&#21487;&#20197;&#35843;&#25972;Pingback&#30340;&#37197;&#32622;&#20197;&#38450;&#27490;&#33258;ping&#12290;<\/p>\n<h3>&#27493;&#39588; 4: &#21551;&#29992;&#33258;&#25105; Pingback &#30340;&#31105;&#27490;&#21151;&#33021;<\/h3>\n<p>&#22312;&ldquo;Pingback&rdquo;&#37096;&#20998;&#65292;&#24744;&#20250;&#30475;&#21040;&#20004;&#20010;&#20027;&#35201;&#36873;&#39033;&#65306;&#19968;&#20010;&#26159;&ldquo;&#21551;&#29992;Pingback&rdquo;&#65292;&#21478;&#19968;&#20010;&#26159;&ldquo;&#31105;&#27490;&#33258;&#25105;Pingback&rdquo;&#12290;&#25105;&#20204;&#38656;&#35201;&#30830;&#20445;&#21246;&#36873;&ldquo;&#31105;&#27490;&#33258;&#25105;Pingback&rdquo;&#12290;<\/p>\n<h3>&#27493;&#39588; 5: &#24212;&#29992;&#26356;&#25913;<\/h3>\n<p>&#19968;&#26086;&#36873;&#25321;&#20102;&ldquo;&#31105;&#27490;&#33258;&#25105;Pingback&rdquo;&#65292;&#35831;&#35760;&#24471;&#28857;&#20987;&#21491;&#19978;&#35282;&#30340;&ldquo;&#24212;&#29992;&rdquo;(Apply)&#25353;&#38062;&#65292;&#25110;&#32773;&#28857;&#20987;&#23631;&#24149;&#19979;&#26041;&#30340;&ldquo;&#20445;&#23384;&#25152;&#26377;&#26356;&#25913;&rdquo;(Save All Changes)&#25353;&#38062;&#12290;<\/p>\n<h3>&#31034;&#20363;&#20195;&#30721;<\/h3>\n<p>&#20197;&#19979;&#26159;&#19968;&#27573;&#31034;&#20363;&#20195;&#30721;&#65292;&#23637;&#31034;&#20102;&#22914;&#20309;&#22312;WordPress&#20013;&#23454;&#29616;&#19978;&#36848;&#25805;&#20316;&#65306;<\/p>\n<pre><code class=\"language-php\">\/\/ &#25214;&#21040;&#24182;&#20462;&#25913; wp-config.php &#25991;&#20214;\n\/\/ &#22686;&#21152;&#20197;&#19979;&#34892;&#20197;&#21551;&#29992;&#20110;&#31105;&#29992;&#33258;&#25105;Pingback&#65306;\ndefine('DISALLOW_PING', true);\n\n\/\/ &#22914;&#26524;&#24744;&#30340;&#26381;&#21153;&#22120;&#29615;&#22659;&#19981;&#25903;&#25345; PHP &#21464;&#37327;&#23450;&#20041;&#65292;&#35831;&#20351;&#29992;&#20197;&#19979;&#26041;&#27861;\nfunction disable_self_ping() {\n    define('DISALLOW_PING', true);\n}\nadd_action('init', 'disable_self_ping');<\/code><\/pre>\n<h3>&#20351;&#29992;&#25928;&#26524;<\/h3>\n<ul>\n<li><strong>&#20316;&#29992;<\/strong>&#65306;&#24403;&#29992;&#25143;&#23581;&#35797;&#21521;&#24050;&#31105;&#29992;&#33258;&#25105;Pingback&#30340;URL&#21457;&#36865;Pingback&#26102;&#65292;&#31995;&#32479;&#23558;&#38459;&#27490;&#35813;&#35831;&#27714;&#12290;<\/li>\n<li><strong>&#20248;&#21183;<\/strong>&#65306;&#36825;&#21487;&#20197;&#26377;&#25928;&#22320;&#20943;&#23569;&#34987;&#24694;&#24847;&#25915;&#20987;&#30340;&#21487;&#33021;&#24615;&#65292;&#21516;&#26102;&#20445;&#25345;&#20102;&#32593;&#31449;&#30340;&#27491;&#24120;&#21151;&#33021;&#21644;&#29992;&#25143;&#20307;&#39564;&#12290;<\/li>\n<\/ul>\n<p>&#35831;&#27880;&#24847;&#65292;&#31105;&#29992;&#33258;&#25105;Pingback&#21487;&#33021;&#20250;&#24433;&#21709;&#26576;&#20123;&#31532;&#19977;&#26041;&#26381;&#21153;&#30340;&#21151;&#33021;&#65292;&#22240;&#27492;&#22312;&#23454;&#38469;&#37096;&#32626;&#21069;&#65292;&#35831;&#30830;&#20445;&#27979;&#35797;&#24744;&#30340;&#32593;&#31449;&#26159;&#21542;&#20173;&#28982;&#33021;&#22815;&#27491;&#24120;&#24037;&#20316;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div><div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--2\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/zp-400x300.jpg\" alt=\"&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;\" class=\"wp-image-1849\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#22312;WordPress&#20013;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;&ldquo;Pingback&rdquo;&#21151;&#33021;&#26159;&#19968;&#31181;&#24120;&#35265;&#30340;&#20570;&#27861;&#65292;&#22240;&#20026;&#23427;&#20204;&#21487;&#33021;&#20250;&#23548;&#33268;&#22403;&#22334;&#37038;&#20214;&#21644;&#19981;&#24517;&#35201;&#30340;&#27969;&#37327;&#12290;&#20197;&#19979;&#26159;&#22914;&#20309;&#22312;WordPress&#20013;&#23454;&#29616;&#36825;&#19968;&#25805;&#20316;&#30340;&#27493;&#39588;&#12290;<\/p>\n<h3>&#27493;&#39588;1: &#30331;&#24405;&#21040;&#24744;&#30340;WordPress&#32593;&#31449;<\/h3>\n<p>&#39318;&#20808;&#65292;&#30331;&#24405;&#21040;&#24744;&#31649;&#29702;WordPress&#31449;&#28857;&#30340;&#21518;&#21488;&#12290;<\/p>\n<h3>&#27493;&#39588;2: &#23548;&#33322;&#33267;&ldquo;&#35774;&#32622;&rdquo;&#33756;&#21333;<\/h3>\n<p>&#25171;&#24320;WordPress&#31649;&#29702;&#30028;&#38754;&#21518;&#65292;&#22312;&#39030;&#37096;&#23548;&#33322;&#26639;&#20013;&#25214;&#21040;&#24182;&#28857;&#20987;&ldquo;&#35774;&#32622;&rdquo;&#12290;<\/p>\n<h3>&#27493;&#39588;3: &#23547;&#25214;&#24182;&#21551;&#29992;&ldquo;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&rdquo;<\/h3>\n<p>&#22312;&#24038;&#20391;&#33756;&#21333;&#20013;&#65292;&#26597;&#25214;&#24182;&#28608;&#27963;&ldquo;&#32534;&#36753;&#26085;&#24535;&rdquo;&#65292;&#28982;&#21518;&#21521;&#19979;&#28378;&#21160;&#30452;&#21040;&#30475;&#21040;&ldquo;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&rdquo;&#30340;&#36873;&#39033;&#12290;&#22914;&#26524;&#35813;&#36873;&#39033;&#26410;&#26174;&#31034;&#65292;&#24744;&#21487;&#20197;&#20351;&#29992;&#25628;&#32034;&#26694;&#36755;&#20837;&ldquo;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&rdquo;&#26469;&#26597;&#30475;&#23427;&#26159;&#21542;&#24050;&#34987;&#21551;&#29992;&#12290;<\/p>\n<h3>&#27493;&#39588;4: &#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback<\/h3>\n<p>&#19968;&#26086;&#25214;&#21040;&#27492;&#36873;&#39033;&#65292;&#21482;&#38656;&#21246;&#36873;&#23427;&#21363;&#21487;&#12290;&#36825;&#23558;&#38459;&#27490;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&#38142;&#25509;&#34987;&#28155;&#21152;&#21040;&#25991;&#31456;&#39029;&#38754;&#19978;&#12290;<\/p>\n<h3>&#31034;&#20363;&#20195;&#30721;&#65306;<\/h3>\n<p>&#22914;&#26524;&#24744;&#24819;&#39564;&#35777;&#19978;&#36848;&#27493;&#39588;&#65292;&#35831;&#21442;&#32771;&#20197;&#19979;&#31034;&#20363;&#20195;&#30721;&#65306;<\/p>\n<pre><code class=\"language-html\">&lt;!-- &#29992;&#20110;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&#30340;&#20195;&#30721; --&gt;\n&lt;script type=\"text\/javascript\"&gt;\n    (function() {\n        \"use strict\";\n        \/\/ &#33719;&#21462;&#24403;&#21069;URL&#30340;&#22495;&#21517;&#37096;&#20998;\n        var domain = window.location.hostname;\n\n        \/\/ &#26816;&#26597;&#24403;&#21069;URL&#26159;&#21542;&#21253;&#21547;\"pingback\"\n        if (domain.includes(\"pingback\")) {\n            \/\/ &#22914;&#26524;&#21253;&#21547;&#65292;&#21017;&#31227;&#38500;&#20197;&#38450;&#27490;&#37325;&#22797;&#29983;&#25104;\n            document.getElementById('your-pingback-link').remove();\n        }\n    })();\n&lt;\/script&gt;<\/code><\/pre>\n<p>&#36825;&#27573;JavaScript&#20195;&#30721;&#20250;&#26816;&#26597;&#24403;&#21069;URL&#26159;&#21542;&#21253;&#21547;&ldquo;pingback&rdquo;&#12290;&#22914;&#26524;&#21253;&#21547;&#65292;&ldquo;&#21024;&#38500;&rdquo;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&#38142;&#25509;&#65292;&#20174;&#32780;&#36798;&#21040;&#31105;&#29992;&#20854;&#30340;&#25928;&#26524;&#12290;<\/p>\n<p>&#35831;&#27880;&#24847;&#65292;&#36825;&#20010;&#31034;&#20363;&#20195;&#30721;&#38656;&#35201;&#26681;&#25454;&#24744;&#30340;WordPress&#20027;&#39064;&#25110;&#25554;&#20214;&#30340;&#32467;&#26500;&#31245;&#20316;&#35843;&#25972;&#65292;&#20855;&#20307;&#21462;&#20915;&#20110;&#24744;&#30340;&#32593;&#31449;&#35774;&#35745;&#12290;<\/p>\n<p>&#36890;&#36807;&#20197;&#19978;&#27493;&#39588;&#21644;&#31034;&#20363;&#20195;&#30721;&#65292;&#24744;&#21487;&#20197;&#26377;&#25928;&#22320;&#22312;WordPress&#20013;&#31105;&#29992;&#33258;&#21160;&#29983;&#25104;&#30340;Pingback&#65292;&#20174;&#32780;&#25552;&#39640;&#32593;&#31449;&#30340;&#23433;&#20840;&#24615;&#21644;&#29992;&#25143;&#20307;&#39564;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bug&#32534;&#35793;&#29422; &#22312;WordPress&#20013;&#31105;&#29992;&#33258;&#25105;Pingback&#26159;&#19968;&#31181;&#20445;&#25252;&#32593;&#31449;&#20813;&#038;#2..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[59],"tuisongtax":[],"class_list":["post-2904","post","type-post","status-publish","format-standard","hentry","category-wpdt","tag-pzjc"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/comments?post=2904"}],"version-history":[{"count":0,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2904\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/media?parent=2904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/categories?post=2904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tags?post=2904"},{"taxonomy":"tuisongtax","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tuisongtax?post=2904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}