{"id":215,"date":"2022-07-03T12:50:22","date_gmt":"2022-07-03T04:50:22","guid":{"rendered":"https:\/\/wpeyes.com\/wordpress\/?post_type=docs&#038;p=215"},"modified":"2022-07-03T20:45:28","modified_gmt":"2022-07-03T12:45:28","slug":"%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb","status":"publish","type":"docs","link":"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb","title":{"rendered":"\u86ee\u529b\u653b\u51fb"},"content":{"rendered":"\n<p>\u4e0e\u4e13\u6ce8\u4e8e\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u9ed1\u5ba2\u653b\u51fb\u4e0d\u540c\uff0c\u86ee\u529b\u653b\u51fb\u65e8\u5728\u6210\u4e3a\u8bbf\u95ee\u7f51\u7ad9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff1a\u5b83\u4e00\u904d\u53c8\u4e00\u904d\u5730\u5c1d\u8bd5\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u76f4\u5230\u5b83\u8fdb\u5165\u3002\u901a\u5e38\u88ab\u8ba4\u4e3a\u662f\u201c\u4e0d\u96c5\u201d\uff0c\u5f53\u4eba\u4eec\u4f7f\u7528\u50cf\u201c123456\u201d\u8fd9\u6837\u7684\u5bc6\u7801\u548c\u50cf\u201cadmin\u201d\u8fd9\u6837\u7684\u7528\u6237\u540d\u65f6\uff0c\u5b83\u4eec\u4f1a\u975e\u5e38\u6210\u529f\u3002<\/p>\n\n\n\n<p>\u7b80\u800c\u8a00\u4e4b\uff0c\u5b83\u4eec\u662f\u5bf9\u4efb\u4f55\u7f51\u7ad9\u5b89\u5168\u4e2d\u6700\u8584\u5f31\u73af\u8282\u7684\u653b\u51fb\u2026\u2026\u4f60\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u8fd9\u4e9b\u653b\u51fb\u7684\u6027\u8d28\uff0c\u60a8\u53ef\u80fd\u4f1a\u53d1\u73b0\u670d\u52a1\u5668\u7684\u5185\u5b58\u7206\u6ee1\uff0c\u4ece\u800c\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a http \u8bf7\u6c42\u7684\u6570\u91cf\uff08\u5373\u67d0\u4eba\u8bbf\u95ee\u60a8\u7684\u7ad9\u70b9\u7684\u6b21\u6570\uff09\u975e\u5e38\u9ad8\uff0c\u4ee5\u81f3\u4e8e\u670d\u52a1\u5668\u5185\u5b58\u4e0d\u8db3\u3002<\/p>\n\n\n\n<p>\u8fd9\u79cd\u653b\u51fb\u4e0d\u662f WordPress \u7279\u6709\u7684\uff0c\u5b83\u53d1\u751f\u5728\u6bcf\u4e2a web \u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u4f46 WordPress \u5f88\u53d7\u6b22\u8fce\uff0c\u56e0\u6b64\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u76ee\u6807\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"protect-yourself\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#protect-yourself\">\u4fdd\u62a4\u4f60\u81ea\u5df1<\/a><\/h2>\n\n\n\n<p>WordPress \u7684\u4e00\u4e2a\u5e38\u89c1\u653b\u51fb\u70b9\u662f<code>wp-login.php<\/code>\u4e00\u904d\u53c8\u4e00\u904d\u5730\u6572\u51fb\u6587\u4ef6\uff0c\u76f4\u5230\u5b83\u4eec\u8fdb\u5165\u6216\u670d\u52a1\u5668\u6b7b\u673a\u3002\u4f60\u53ef\u4ee5\u505a\u4e00\u4e9b\u4e8b\u60c5\u6765\u4fdd\u62a4\u81ea\u5df1\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"dont-use-the-admin-username\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#dont-use-the-admin-username\">\u4e0d\u8981\u4f7f\u7528\u201c\u7ba1\u7406\u5458\u201d\u7528\u6237\u540d<\/a><\/h3>\n\n\n\n<p>\u5927\u591a\u6570\u653b\u51fb\u5047\u8bbe\u4eba\u4eec\u4f7f\u7528\u7528\u6237\u540d\u201cadmin\u201d\uff0c\u56e0\u4e3a\u65e9\u671f\u7248\u672c\u7684 WordPress \u9ed8\u8ba4\u4f7f\u7528\u6b64\u7528\u6237\u540d\u3002\u5982\u679c\u60a8\u4ecd\u5728\u4f7f\u7528\u6b64\u7528\u6237\u540d\uff0c\u8bf7\u521b\u5efa\u4e00\u4e2a\u65b0\u5e10\u6237\uff0c\u5c06\u6240\u6709\u5e16\u5b50\u8f6c\u79fb\u5230\u8be5\u5e10\u6237\uff0c\u5e76\u5c06\u201c\u7ba1\u7406\u5458\u201d\u66f4\u6539\u4e3a\u8ba2\u9605\u8005\uff08\u6216\u5b8c\u5168\u5220\u9664\uff09\u3002<\/p>\n\n\n\n<p>\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u63d2\u4ef6<a href=\"https:\/\/wordpress.org\/plugins\/change-username\/\">\u66f4\u6539\u7528\u6237<\/a>\u540d\u6765\u66f4\u6539\u60a8\u7684\u7528\u6237\u540d\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"good-passwords\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#good-passwords\">\u597d\u5bc6\u7801<\/a><\/h3>\n\n\n\n<p>\u4f7f\u7528\u60a8\u7684\u5bc6\u7801\u7684\u76ee\u7684\u662f\u8ba9\u5176\u4ed6\u4eba\u96be\u4ee5\u731c\u5230\uff0c\u5e76\u4f7f\u66b4\u529b\u653b\u51fb\u96be\u4ee5\u6210\u529f\u3002\u8bb8\u591a<a href=\"http:\/\/www.google.com\/?q=password+generator\">\u81ea\u52a8\u5bc6\u7801\u751f\u6210\u5668<\/a>\u53ef\u7528\u4e8e\u521b\u5efa\u5b89\u5168\u5bc6\u7801\u3002<\/p>\n\n\n\n<p>WordPress \u8fd8\u5177\u6709\u5bc6\u7801\u5f3a\u5ea6\u8ba1\uff0c\u5728 WordPress \u4e2d\u66f4\u6539\u5bc6\u7801\u65f6\u4f1a\u663e\u793a\u8be5\u8ba1\u3002\u5728\u66f4\u6539\u5bc6\u7801\u65f6\u4f7f\u7528\u5b83\u4ee5\u786e\u4fdd\u5176\u5f3a\u5ea6\u8db3\u591f\u3002<\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528<a href=\"https:\/\/wordpress.org\/plugins\/force-strong-passwords\/\">Force Strong Password<\/a>\u63d2\u4ef6\u5f3a\u5236\u7528\u6237\u8bbe\u7f6e\u5f3a\u5bc6\u7801\u3002<\/p>\n\n\n\n<p>\u9009\u62e9\u5bc6\u7801\u65f6\u8981\u907f\u514d\u7684\u4e8b\u60c5\uff1a<\/p>\n\n\n\n<ul><li>\u60a8\u81ea\u5df1\u7684\u771f\u5b9e\u59d3\u540d\u3001\u7528\u6237\u540d\u3001\u516c\u53f8\u540d\u79f0\u6216\u60a8\u7684\u7f51\u7ad9\u540d\u79f0\u7684\u4efb\u4f55\u6392\u5217\u3002<\/li><li>\u5b57\u5178\u4e2d\u7684\u4e00\u4e2a\u8bcd\uff0c\u4efb\u4f55\u8bed\u8a00\u3002<\/li><li>\u4e00\u4e2a\u7b80\u77ed\u7684\u5bc6\u7801\u3002<\/li><li>\u4efb\u4f55\u4ec5\u542b\u6570\u5b57\u6216\u4ec5\u542b\u5b57\u6bcd\u7684\u5bc6\u7801\uff08\u6700\u597d\u6df7\u5408\u4f7f\u7528\uff09\u3002<\/li><\/ul>\n\n\n\n<p>\u5f3a\u5bc6\u7801\u4e0d\u4ec5\u662f\u4e3a\u4e86\u4fdd\u62a4\u60a8\u7684\u535a\u5ba2\u5185\u5bb9\uff0c\u4e5f\u662f\u5fc5\u8981\u7684\u3002\u8bbf\u95ee\u60a8\u7684\u7ba1\u7406\u5458\u5e10\u6237\u7684\u9ed1\u5ba2\u80fd\u591f\u5b89\u88c5\u53ef\u80fd\u5371\u53ca\u60a8\u7684\u6574\u4e2a\u670d\u52a1\u5668\u7684\u6076\u610f\u811a\u672c\u3002<\/p>\n\n\n\n<p>\u8981\u8fdb\u4e00\u6b65\u63d0\u9ad8\u5bc6\u7801\u5f3a\u5ea6\uff0c\u60a8\u53ef\u4ee5\u542f\u7528<a href=\"https:\/\/codex.wordpress.org\/Two%20Step%20Authentication\">\u4e24\u6b65\u9a8c\u8bc1<\/a>\u4ee5\u8fdb\u4e00\u6b65\u4fdd\u62a4\u60a8\u7684\u535a\u5ba2\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"plugins\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#plugins\">\u63d2\u4ef6<\/a><\/h3>\n\n\n\n<p>\u6709\u8bb8\u591a<a href=\"https:\/\/wordpress.org\/plugins\/tags\/brute-force\">\u63d2\u4ef6\u53ef\u7528\u4e8e\u9650\u5236<\/a>\u60a8\u7f51\u7ad9\u4e0a\u7684\u767b\u5f55\u5c1d\u8bd5\u6b21\u6570\u3002\u6216\u8005\uff0c<a href=\"https:\/\/wordpress.org\/plugins\/search.php?q=admin+rename\">\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u8bb8\u591a\u63d2\u4ef6\u6765\u5b8c\u5168\u963b\u6b62\u4eba\u4eec\u8bbf\u95ee wp-admin<\/a>\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"protect-your-server\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#protect-your-server\">\u4fdd\u62a4\u60a8\u7684\u670d\u52a1\u5668<\/a><\/h2>\n\n\n\n<p>\u5982\u679c\u60a8\u51b3\u5b9a\u9501\u5b9a wp-login.php \u6216 wp-admin\uff0c\u60a8\u53ef\u80fd\u4f1a\u53d1\u73b0\u5728\u8bbf\u95ee\u8fd9\u4e9b\u9875\u9762\u65f6\u6536\u5230 404 \u6216 401 \u9519\u8bef\u3002\u4e3a\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u60a8\u9700\u8981\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230\u60a8\u7684 .htaccess \u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u9519\u8bef\u6587\u6863 401 \u9ed8\u8ba4<\/pre>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5c06 401 \u6307\u5411 401.html\uff0c\u4f46\u91cd\u70b9\u662f\u4e0d\u8981\u9488\u5bf9<em>WordPress<\/em>\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e Nginx\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 error_page \u6307\u4ee4\uff0c\u4f46\u5fc5\u987b\u63d0\u4f9b\u7edd\u5bf9 url\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">error_page 401 http:\/\/example.com\/forbidden.html\uff1b<\/pre>\n\n\n\n<p>\u5728 IIS Web \u670d\u52a1\u5668\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>httpErrors<\/code>web.config \u4e2d\u7684\u5143\u7d20\uff0c\u8bbe\u7f6e<code>errorMode=\"custom\"<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;httpErrors errorMode=\"Custom\"&gt; <br>&lt;error statusCode=\"401\" <br>subStatusCode=\"2\" <br>prefixLanguageFilePath=\"\" <br>path=\"401.htm\" <br>responseMode=\"File\" \/&gt; <br>&lt;\/httpErrors&gt;<\/pre>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"password-protect-wp-login-php\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#password-protect-wp-login-php\">\u5bc6\u7801\u4fdd\u62a4 wp-login.php<\/a><\/h3>\n\n\n\n<p>\u4fdd\u62a4\u60a8\u7684 wp-login.php \u6587\u4ef6\uff08\u548c wp-admin \u6587\u4ef6\u5939\uff09\u7684\u5bc6\u7801\u53ef\u4ee5\u4e3a\u60a8\u7684\u670d\u52a1\u5668\u6dfb\u52a0\u4e00\u4e2a\u989d\u5916\u7684\u5c42\u3002\u56e0\u4e3a\u5bc6\u7801\u4fdd\u62a4 wp-admin \u53ef\u4ee5\u7834\u574f\u4efb\u4f55\u5728\u524d\u7aef\u4f7f\u7528 ajax \u7684\u63d2\u4ef6\uff0c\u901a\u5e38\u53ea\u4fdd\u62a4 wp-login.php \u5c31\u8db3\u591f\u4e86\u3002<\/p>\n\n\n\n<p>\u4e3a\u6b64\uff0c\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a .htpasswd \u6587\u4ef6\u3002\u8bb8\u591a\u4e3b\u673a\u90fd\u6709\u5de5\u5177\u4e3a\u60a8\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u4f46\u5982\u679c\u60a8\u5fc5\u987b\u624b\u52a8\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b64<a href=\"http:\/\/www.htaccesstools.com\/htpasswd-generator\/\">htpasswd \u751f\u6210\u5668<\/a>\u3002\u5c31\u50cf\u60a8\u7684 .htaccess \u6587\u4ef6\uff08\u5b83\u53ea\u662f\u4e00\u4e2a\u6269\u5c55\u540d\u7684\u6587\u4ef6\uff09\u4e00\u6837\uff0c.htpasswd \u4e5f\u6ca1\u6709\u524d\u7f00\u3002<\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5c06\u6b64\u6587\u4ef6\u653e\u5728\u516c\u5171 Web \u6587\u4ef6\u5939\u4e4b\u5916\uff08\u5373\u4e0d\u5728 \/public_html\/ \u6216 \/domain.com\/ \u4e2d\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u60a8\u7684\u4e3b\u673a\uff09\uff0c\u4e5f<em>\u53ef\u4ee5<\/em>\u5c06\u5b83\u653e\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\uff0c\u4f46\u60a8\u9700\u8981\u505a\u4e00\u4e9b\u5982\u679c\u60a8\u8fd9\u6837\u505a\uff0c\u5219\u5728\u60a8\u7684 .htaccess \u6587\u4ef6\u4e2d\u8fdb\u884c\u989d\u5916\u7684\u5b89\u5168\u5de5\u4f5c\u3002<\/p>\n\n\n\n<p>\u8bf4\u5230\u8fd9\uff0c\u4e00\u65e6\u4f60\u4e0a\u4f20\u4e86 .htpasswd \u6587\u4ef6\uff0c\u4f60\u9700\u8981\u544a\u8bc9 .htaccess \u5b83\u5728\u54ea\u91cc\u3002\u5047\u8bbe\u60a8\u5df2\u5c06 .htpasswd \u653e\u5728\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u4e2d\uff0c\u5e76\u4e14\u60a8\u7684 htpasswd \u7528\u6237\u540d\u662f mysecretuser\uff0c\u90a3\u4e48\u60a8\u5c06\u5176\u653e\u5728 .htaccess \u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u505c\u6b62 Apache \u63d0\u4f9b .ht* \u6587\u4ef6<br>&lt;Files ~ \"^\\.ht\"&gt; <br>  Order allow,deny <br>  Deny from all <br>&lt;\/Files&gt; <br># Protect wp-login.php <br>&lt;Files wp-login.php&gt; <br>  AuthUserFile ~\/.htpasswd <br>  AuthName \"\u79c1\u4eba\u8bbf\u95ee\" <br>  AuthType Basic<br>\u9700\u8981\u7528\u6237 mysecretuser <br>&lt;\/Files&gt;<\/pre>\n\n\n\n<p>AuthUserFile \u7684\u5b9e\u9645\u4f4d\u7f6e\u53d6\u51b3\u4e8e\u60a8\u7684\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u201c\u8981\u6c42\u7528\u6237\u201d\u5c06\u6839\u636e\u60a8\u9009\u62e9\u7684\u7528\u6237\u540d\u800c\u6539\u53d8\u3002<\/p>\n\n\n\n<p><a href=\"http:\/\/wiki.nginx.org\/HttpAuthBasicModule\">\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f Nginx\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528HttpAuthBasicModule<\/a>\u5bf9 wp-login.php \u6587\u4ef6\u8fdb\u884c\u5bc6\u7801\u4fdd\u62a4\u3002\u8fd9\u4e2a\u5757\u5e94\u8be5\u5728\u4f60\u7684\u670d\u52a1\u5668\u5757\u5185\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/wp-login.php { <br>    auth_basic \"\u7ba1\u7406\u5458\u767b\u5f55\"; <br>    auth_basic_user_file .htpasswd; <br>}<\/pre>\n\n\n\n<p>\u6587\u4ef6\u540d\u8def\u5f84\u662f\u76f8\u5bf9\u4e8e nginx \u914d\u7f6e\u6587\u4ef6 nginx.conf \u7684\u76ee\u5f55<\/p>\n\n\n\n<p>\u8be5\u6587\u4ef6\u5e94\u91c7\u7528\u4ee5\u4e0b\u683c\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">  \u7528\u6237\uff1a\u901a\u8fc7\u7528\u6237<br>  2\uff1a\u901a\u8fc72\u7528\u62373\uff1a\u901a\u8fc7<br>  3<\/pre>\n\n\n\n<p>\u4e0d\u5e78\u7684\u662f\uff0c\u6ca1\u6709\u7b80\u5355\u7684\u65b9\u6cd5\u53ef\u4ee5\u5728 Windows Server IIS \u4e0a\u914d\u7f6e\u53d7\u5bc6\u7801\u4fdd\u62a4\u7684 wp-login.php\u3002\u5982\u679c\u60a8\u4f7f\u7528\u50cf Helicon Ape \u8fd9\u6837\u7684 .htaccess \u5904\u7406\u5668\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u4e0a\u9762\u63d0\u5230\u7684 .htaccess \u793a\u4f8b\u3002\u5426\u5219\uff0c\u60a8\u5fc5\u987b\u8981\u6c42\u60a8\u7684\u6258\u7ba1\u670d\u52a1\u63d0\u4f9b\u5546\u8bbe\u7f6e\u57fa\u672c\u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<p>\u6240\u6709\u5bc6\u7801\u5fc5\u987b\u7531\u51fd\u6570\u7f16\u7801<code>crypt(3)<\/code>\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf<a href=\"http:\/\/www.htaccesstools.com\/htpasswd-generator\/\">htpasswd \u751f\u6210\u5668<\/a>\u6765\u52a0\u5bc6\u60a8\u7684\u5bc6\u7801\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"limit-access-to-wp-login-php-by-ip\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#limit-access-to-wp-login-php-by-ip\">\u901a\u8fc7 IP \u9650\u5236\u5bf9 wp-login.php \u7684\u8bbf\u95ee<\/a><\/h3>\n\n\n\n<p>\u5982\u679c\u60a8\u662f\u552f\u4e00\u9700\u8981\u767b\u5f55\u5230\u60a8\u7684\u7ba1\u7406\u533a\u57df\u5e76\u4e14\u60a8\u6709\u56fa\u5b9a IP \u5730\u5740\u7684\u4eba\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7 .htaccess \u6216web.config \u6587\u4ef6\u3002\u8fd9\u901a\u5e38\u79f0\u4e3a<em>IP \u767d\u540d\u5355<\/em>\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u8bf7\u6ce8\u610f\u60a8\u7684 ISP \u6216\u8ba1\u7b97\u673a\u53ef\u80fd\u4f1a\u9891\u7e41\u66f4\u6539\u60a8\u7684 IP \u5730\u5740\uff0c\u8fd9\u79f0\u4e3a\u52a8\u6001 IP \u5730\u5740\uff0c\u800c\u4e0d\u662f\u56fa\u5b9a IP \u5730\u5740\u3002\u8fd9\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u539f\u56e0\uff0c\u4f8b\u5982\u7701\u94b1\u3002\u5982\u679c\u60a8\u6000\u7591\u662f\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u4e86\u89e3\u5982\u4f55\u66f4\u6539\u60a8\u7684\u8ba1\u7b97\u673a\u8bbe\u7f6e\uff0c\u6216\u8054\u7cfb\u60a8\u7684 ISP \u4ee5\u83b7\u53d6\u56fa\u5b9a\u5730\u5740\uff0c\u4ee5\u4fbf\u4f7f\u7528\u6b64\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u5728\u6240\u6709\u793a\u4f8b\u4e2d\uff0c\u60a8\u5fc5\u987b\u5c06 203.0.113.15 \u66ff\u6362\u4e3a\u60a8\u7684 IP \u5730\u5740\u3002\u60a8\u7684\u4e92\u8054\u7f51\u63d0\u4f9b\u5546\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5efa\u7acb\u60a8\u7684 IP \u5730\u5740\u3002\u6216\u8005\u60a8\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf\u670d\u52a1\uff0c\u4f8b\u5982<a href=\"http:\/\/www.whatismyip.com\/\">\u6211\u7684 IP \u662f\u4ec0\u4e48<\/a>\u3002<\/p>\n\n\n\n<p>\u8fd8\u63d0\u4f9b\u4e86\u591a\u4e2a IP \u5730\u5740\u7684\u793a\u4f8b\u3002\u5982\u679c\u60a8\u4f7f\u7528\u591a\u4e2a\u4e92\u8054\u7f51\u63d0\u4f9b\u5546\uff0c\u5982\u679c\u60a8\u7684 IP \u5730\u5740\u6c60\u5f88\u5c0f\uff0c\u6216\u8005\u5f53\u60a8\u6709\u51e0\u4e2a\u4eba\u53ef\u4ee5\u8bbf\u95ee\u60a8\u7f51\u7ad9\u7684\u4eea\u8868\u677f\u65f6\uff0c\u5b83\u4eec\u662f\u7406\u60f3\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n<p>\u5728\u540d\u4e3a .htaccess \u7684\u7eaf\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5e76\u6dfb\u52a0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u963b\u6b62\u8bbf\u95ee wp-login.php\u3002<br>&lt;Files wp-login.php&gt; <br>  order deny,allow <br>  allow from 203.0.113.15 <br>  deny from all <br>&lt;\/Files&gt;<\/pre>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6dfb\u52a0\u591a\u4e2a\u5141\u8bb8\u7684 IP \u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u963b\u6b62\u8bbf\u95ee wp-login.php\u3002<br>&lt;Files wp-login.php&gt; <br>  order deny,allow <br>  allow from 203.0.113.15 <br>  allow from 203.0.113.16 <br>  allow from 203.0.113.17 <br>  deny from all <br>&lt;\/Files&gt;<\/pre>\n\n\n\n<p>\u60a8\u4f7f\u7528\u7684\u662f Apache 2.4 \u548c Apache \u6a21\u5757<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_authz_host.html\">mod_authz_host<\/a>\u5417\uff1f\u7136\u540e\u4f60\u5fc5\u987b\u4f7f\u7528\u7a0d\u5fae\u4e0d\u540c\u7684\u8bed\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u963b\u6b62\u8bbf\u95ee wp-login.php\u3002<br>&lt;\u6587\u4ef6 wp-login.php&gt;<br>  \u9700\u8981 ip 203.0.113.15 <br>&lt;\/\u6587\u4ef6&gt;<\/pre>\n\n\n\n<p>\u5982\u679c\u8981\u6dfb\u52a0\u591a\u4e2a IP \u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u963b\u6b62\u8bbf\u95ee wp-login.php\u3002<br>&lt;Files wp-login.php&gt; <br>  Require ip 203.0.113.15 203.0.113.16 203.0.113.17 <br>  # \u6216\u8005\u5168\u7f51\uff1a<br>  # Require ip 203.0.113.0\/255.255.255.0 <br>&lt;\/Files&gt;<\/pre>\n\n\n\n<p>\u5bf9\u4e8e Nginx\uff0c\u60a8\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u5757\u5185\u6dfb\u52a0\u4e00\u4e2a\u4f4d\u7f6e\u5757\uff0c\u5176\u5de5\u4f5c\u65b9\u5f0f\u4e0e\u4e0a\u9762\u7684 Apache \u793a\u4f8b\u76f8\u540c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">error_page 403 http:\/\/example.com\/forbidden.html;\n\u4f4d\u7f6e \/wp-login.php {\n  \u5141\u8bb8 203.0.113.15\n  # \u6216\u8005\u5bf9\u4e8e\u6574\u4e2a\u7f51\u7edc\uff1a\n  # \u5141\u8bb8 203.0.113.0\/24;\n  \u5168\u90e8\u5426\u8ba4\uff1b\n}<\/pre>\n\n\n\n<p>\u8bf7\u6ce8\u610f\uff0c\u62d2\u7edd\/\u5141\u8bb8\u7684\u987a\u5e8f\u81f3\u5173\u91cd\u8981\u3002\u60a8\u53ef\u80fd\u4f1a\u8ba4\u4e3a\u60a8\u53ef\u4ee5\u5207\u6362\u8bbf\u95ee\u6307\u4ee4\u987a\u5e8f\uff0c\u4e00\u5207\u90fd\u4f1a\u6b63\u5e38\u5de5\u4f5c\u3002\u4e8b\u5b9e\u4e0a\u5b83\u6ca1\u6709\u3002\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\u5207\u6362\u987a\u5e8f\u4f1a\u5bfc\u81f4\u62d2\u7edd\u8bbf\u95ee\u6240\u6709\u5730\u5740\u3002<\/p>\n\n\n\n<p>\u540c\u6837\uff0c\u5728 IIS Web \u670d\u52a1\u5668\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 web.config \u6587\u4ef6\u6765\u9650\u5236\u53ef\u4ee5\u8bbf\u95ee\u7684 IP \u5730\u5740\u3002\u6700\u597d\u5c06\u6b64\u6dfb\u52a0\u5230\u9644\u52a0<code>&lt;location<\/code>\u6307\u4ee4\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;location path=\"wp-admin\"&gt; <br>  &lt;system.webServer&gt; <br>    &lt;security&gt; <br>      &lt;ipSecurity allowUnlisted=\"false\"&gt; &lt;!-- \u8be5\u89c4\u5219\u62d2\u7edd\u6240\u6709 IP \u5730\u5740\uff0c\u9664\u4e86\u4e0b\u9762\u63d0\u5230\u7684\u90a3\u4e9b --&gt; <br>        &lt;!-- 203.0 .113.x \u662f\u4e00\u4e2a\u7279\u6b8a\u7684 IP \u5730\u5740\u6d4b\u8bd5\u8303\u56f4 --&gt; <br>        &lt;!-- \u7528\u4f60\u81ea\u5df1\u7684\u66ff\u6362\u5b83\u4eec --&gt; <br>        &lt;add ipAddress=\"203.0.113.15\" allowed=\"true\" \/&gt; <br>        &lt;add ipAddress=\"203.0. 113.16\" allowed=\"true\" \/&gt; <br>      &lt;\/ipSecurity&gt; <br>    &lt;\/security&gt; <br>  &lt;\/system.webServer&gt; <br>&lt;\/location&gt;<\/pre>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deny-access-to-no-referrer-requests\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#deny-access-to-no-referrer-requests\">\u62d2\u7edd\u8bbf\u95ee\u65e0\u63a8\u8350\u4eba\u8bf7\u6c42<\/a><\/h3>\n\n\n\n<p>\u6269\u5c55\u81ea<a href=\"https:\/\/codex.wordpress.org\/Combating_Comment_Spam\/Denying_Access#Deny_Access_to_No_Referrer_Requests\">Combatting Comment Spam<\/a>\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u9632\u6b62\u672a\u63d0\u4ea4\u767b\u5f55\u8868\u5355\u7684\u4efb\u4f55\u4eba\u8bbf\u95ee\u5b83\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u505c\u6b62\u5783\u573e\u90ae\u4ef6\u653b\u51fb\u767b\u5f55\u548c\u8bc4\u8bba<br>&lt;IfModule mod_rewrite.c&gt; <br>\tRewriteEngine On <br>\tRewriteCond %{REQUEST_METHOD} POST <br>\tRewriteCond %{REQUEST_URI} .(wp-comments-post|wp-login)\\.php* <br>\tRewriteCond %{HTTP_REFERER} !.* example.com.* [OR] <br>\tRewriteCond %{HTTP_USER_AGENT} ^$ <br>\tRewriteRule (.*) http:\/\/%{REMOTE_ADDR}\/$1 [R=301,L] <br>&lt;\/ifModule&gt;<\/pre>\n\n\n\n<p>Nginx \u2013 \u62d2\u7edd\u8bbf\u95ee\u65e0\u63a8\u8350\u4eba\u8bf7\u6c42<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u4f4d\u7f6e ~* (wp-comments-posts|wp-login)\\.php$ {\n      if ($http_referer !~ ^(http:\/\/example.com) ) {\n           \u8fd4\u56de405\uff1b\n      }\n}<\/pre>\n\n\n\n<p>Windows Server IIS \u2013 \u62d2\u7edd\u8bbf\u95ee\u65e0\u5f15\u8350\u6765\u6e90\u7f51\u5740\u8bf7\u6c42\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;rule name=\"block_comments_without_referer\" patternSyntax=\"ECMAScript\" stopProcessing=\"true\"&gt; <br>&lt;match url=\"(.*)\" ignoreCase=\"true\" \/&gt; <br>  &lt;conditions logicalGrouping=\"MatchAll\"&gt; <br>    &lt;add input=\"{URL }\" pattern=\"^\/(wp-comments-post|wp-login)\\.php\" negate=\"false\"\/&gt; <br>    &lt;add input=\"{HTTP_REFERER}\" pattern=\".*example\\.com.*\" \" negate=\"true\" \/&gt; <br>    &lt;add input=\"{HTTP_METHOD}\" pattern=\"POST\" \/&gt; &lt;\/conditions&gt; <br>  &lt;action type=\"CustomResponse\" statusCode=\"403\" statusReason=\"Forbidden: \u8bbf\u95ee\u88ab\u62d2\u7edd\u3002\" statusDescription=\"\u6ca1\u6709\u63a8\u8350\u4eba\u7684\u8bc4\u8bba\uff01\" \/&gt; <br>&lt;<\/pre>\n\n\n\n<p>\u5c06 example.com \u66f4\u6539\u4e3a\u60a8\u7684\u57df\u3002\u5982\u679c\u60a8\u5c06 Multisite \u4e0e\u6620\u5c04\u57df\u4e00\u8d77\u4f7f\u7528\uff0c\u5219\u9700\u8981\u5c06 example.com \u66f4\u6539\u4e3a<code>(example.com|example.net|example4.com)<\/code>\u7b49\u7b49\u3002\u5982\u679c\u60a8\u4f7f\u7528 Jetpack \u8bc4\u8bba\uff0c\u8bf7\u4e0d\u8981\u5fd8\u8bb0\u6dfb\u52a0 jetpack.wordpress.com \u4f5c\u4e3a\u63a8\u8350\u4eba\uff1a<code>(example.com|jetpack\\.wordpress\\com)<\/code><\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"modsecurity\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#modsecurity\">\u56fd\u9632\u90e8\u5b89\u5168<\/a><\/h3>\n\n\n\n<p>\u5982\u679c\u60a8\u4f7f\u7528 ModSecurity\uff0c\u60a8\u53ef\u4ee5\u9075\u5faa<a href=\"http:\/\/www.frameloss.org\/2011\/07\/29\/stopping-brute-force-logins-against-wordpress\/\">Frameloss \u7684\u5efa\u8bae\u2014\u2014\u505c\u6b62\u9488\u5bf9 WordPress \u7684\u66b4\u529b\u767b\u5f55<\/a>\u3002\u8fd9\u9700\u8981\u5bf9\u60a8\u7684\u670d\u52a1\u5668\u8fdb\u884c\u6839\u7ea7\u522b\u8bbf\u95ee\uff0c\u5e76\u4e14\u53ef\u80fd\u9700\u8981\u60a8\u7684\u865a\u62df\u4e3b\u673a\u7684\u5e2e\u52a9\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f ModSecurity 2.7.3\uff0c\u5219\u53ef\u4ee5\u5c06\u89c4\u5219\u6dfb\u52a0\u5230\u60a8\u7684 .htaccess \u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fail2ban\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#fail2ban\">Fail2Ban<\/a><\/h3>\n\n\n\n<p>Fail2ban \u662f\u4e00\u4e2a\u5728\u540e\u53f0\u8fd0\u884c\u7684 Python \u5b88\u62a4\u8fdb\u7a0b\u3002\u5b83\u68c0\u67e5\u7531 Apache\uff08\u6216 SSH \u4f8b\u5982\uff09\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u5e76\u4e14\u5728\u67d0\u4e9b\u4e8b\u4ef6\u4e0a\u53ef\u4ee5\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\u3002\u5b83\u4f7f\u7528\u5e26\u6709\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6240\u8c13\u8fc7\u6ee4\u5668\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8be5\u6b63\u5219\u8868\u8fbe\u5f0f\u5728 5 \u5206\u949f\u5185\u53d1\u751f 5 \u6b21\uff0c\u5b83\u53ef\u4ee5\u963b\u6b62\u8be5 IP \u5730\u5740 60 \u5206\u949f\uff08\u6216\u4efb\u4f55\u5176\u4ed6\u6570\u5b57\u96c6\uff09\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u548c\u8bbe\u7f6e Fail2ban \u9700\u8981 root \u8bbf\u95ee\u6743\u9650\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"blocklists\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#blocklists\">\u963b\u6b62\u5217\u8868<\/a><\/h3>\n\n\n\n<p>\u4f3c\u4e4e\u5927\u591a\u6570\u66b4\u529b\u653b\u51fb\u6765\u81ea\u4fc4\u7f57\u65af\u3001\u54c8\u8428\u514b\u65af\u5766\u548c\u4e4c\u514b\u5170\u7684\u4e1c\u9053\u4e3b\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u963b\u6b62\u6765\u81ea\u8fd9\u4e9b\u56fd\u5bb6\/\u5730\u533a\u7684 IP \u5730\u5740\u3002\u60a8\u53ef\u4ee5\u4e0b\u8f7d Internet \u4e0a\u7684\u963b\u6b62\u5217\u8868\u3002\u4f7f\u7528\u4e00\u4e9b shell \u811a\u672c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 iptables \u52a0\u8f7d\u5757\u89c4\u5219\u3002<\/p>\n\n\n\n<p>\u60a8\u5fc5\u987b\u77e5\u9053\u60a8\u6b63\u5728\u963b\u6b62\u5408\u6cd5\u7528\u6237\u548c\u653b\u51fb\u8005\u3002\u786e\u4fdd\u60a8\u53ef\u4ee5\u652f\u6301\u5e76\u5411\u60a8\u7684\u5ba2\u6237\u89e3\u91ca\u8be5\u51b3\u5b9a\u3002<\/p>\n\n\n\n<p>\u9664\u4e86\u6bcf\u4e2a\u56fd\u5bb6\/\u5730\u533a\u7684\u963b\u6b62\u5217\u8868\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5e26\u6709\u77e5\u540d\u5783\u573e\u90ae\u4ef6\u53d1\u9001\u8005 IP \u5730\u5740\u7684\u5217\u8868\u3002\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u6765\u901a\u8fc7 iptables \u963b\u6b62\u5b83\u4eec\u3002\u5b9a\u671f\u66f4\u65b0\u8fd9\u4e9b\u5217\u8868\u5f88\u597d\u3002<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u963b\u6b62\u5217\u8868\u548c iptables \u9700\u8981 root \u8bbf\u95ee\u6743\u9650\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cloud-proxy-services\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#cloud-proxy-services\">\u4e91\/\u4ee3\u7406\u670d\u52a1<\/a><\/h3>\n\n\n\n<p>CloudFlare \u548c Sucuri CloudProxy \u7b49\u670d\u52a1\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5728 IP \u5230\u8fbe\u60a8\u7684\u670d\u52a1\u5668\u4e4b\u524d\u963b\u6b62\u5b83\u4eec\u6765\u5e2e\u52a9\u51cf\u8f7b\u8fd9\u4e9b\u653b\u51fb\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"see-also\"><a href=\"https:\/\/wordpress.org\/support\/article\/brute-force-attacks\/#see-also\">\u4e5f\u53ef\u4ee5\u770b\u770b<\/a><\/h2>\n\n\n\n<ul><li><a href=\"http:\/\/blog.sucuri.net\/2013\/04\/protecting-against-wordpress-brute-force-attacks.html\">Sucuri\uff1a\u9632\u6b62 WordPress \u86ee\u529b\u653b\u51fb<\/a><\/li><li><a href=\"https:\/\/www.saotn.org\/how-to-wordpress-protection-from-brute-force-xml-rpc-attacks\/\">\u5982\u4f55\uff1a\u4fdd\u62a4 WordPress \u514d\u53d7\u66b4\u529b XML-RPC \u653b\u51fb<\/a><\/li><li><a href=\"http:\/\/kb.liquidweb.com\/wordpress-modsecurity-rules\/\">Liquid Web\uff1a\u51cf\u8f7b\u66b4\u529b\u653b\u51fb\u7684 ModSecurity \u89c4\u5219<\/a><\/li><li><a href=\"http:\/\/support.hostgator.com\/articles\/specialized-help\/technical\/wordpress\/wordpress-login-brute-force-attack\">HostGator\uff1a\u5bc6\u7801\u4fdd\u62a4 wp-login<\/a><\/li><li><a href=\"http:\/\/www.frameloss.org\/2011\/07\/29\/stopping-brute-force-logins-against-wordpress\/\">\u505c\u6b62\u66b4\u529b\u767b\u5f55<\/a><\/li><li><a href=\"https:\/\/github.com\/orbisius\/sak4wp\/\">Swiss Army Knife for WordPress (SAK4WP)<\/a>&nbsp;\u2013 \u514d\u8d39\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u4e00\u952e\u4fdd\u62a4\u60a8\u7684 wp-login.php \u548c \/wp-admin\/ \u800c\u4e0d\u662f \/wp-admin\/admin-ajax.php \u7b49\u7b49<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0e\u4e13\u6ce8\u4e8e\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u9ed1\u5ba2\u653b\u51fb\u4e0d\u540c\uff0c\u86ee\u529b\u653b\u51fb\u65e8\u5728\u6210\u4e3a\u8bbf\u95ee\u7f51\u7ad9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff1a\u5b83\u4e00\u904d\u53c8\u4e00\u904d\u5730\u5c1d\u8bd5\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u76f4\u5230\u5b83\u8fdb &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb\"> <span class=\"screen-reader-text\">\u86ee\u529b\u653b\u51fb<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"doc_category":[8,10],"doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpeyes.com\/wordpress\/docs\/\u86ee\u529b\u653b\u51fb\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587\" \/>\n<meta property=\"og:description\" content=\"\u4e0e\u4e13\u6ce8\u4e8e\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u9ed1\u5ba2\u653b\u51fb\u4e0d\u540c\uff0c\u86ee\u529b\u653b\u51fb\u65e8\u5728\u6210\u4e3a\u8bbf\u95ee\u7f51\u7ad9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff1a\u5b83\u4e00\u904d\u53c8\u4e00\u904d\u5730\u5c1d\u8bd5\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u76f4\u5230\u5b83\u8fdb &hellip; \u86ee\u529b\u653b\u51fb Read More \u00bb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpeyes.com\/wordpress\/docs\/\u86ee\u529b\u653b\u51fb\" \/>\n<meta property=\"og:site_name\" content=\"WordPress\u4e2d\u6587\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-03T12:45:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb\",\"name\":\"\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587\",\"isPartOf\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#website\"},\"datePublished\":\"2022-07-03T04:50:22+00:00\",\"dateModified\":\"2022-07-03T12:45:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/wpeyes.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/wpeyes.com\/wordpress\/docs\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u86ee\u529b\u653b\u51fb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#website\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/\",\"name\":\"WordPress\u4e2d\u6587\",\"description\":\"wpeyes\u6280\u672f\u89c6\u70b9\",\"publisher\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpeyes.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#organization\",\"name\":\"WordPress\u4e2d\u6587\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png\",\"contentUrl\":\"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png\",\"width\":1000,\"height\":1000,\"caption\":\"WordPress\u4e2d\u6587\"},\"image\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpeyes.com\/wordpress\/docs\/\u86ee\u529b\u653b\u51fb","og_locale":"zh_CN","og_type":"article","og_title":"\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587","og_description":"\u4e0e\u4e13\u6ce8\u4e8e\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u9ed1\u5ba2\u653b\u51fb\u4e0d\u540c\uff0c\u86ee\u529b\u653b\u51fb\u65e8\u5728\u6210\u4e3a\u8bbf\u95ee\u7f51\u7ad9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff1a\u5b83\u4e00\u904d\u53c8\u4e00\u904d\u5730\u5c1d\u8bd5\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u76f4\u5230\u5b83\u8fdb &hellip; \u86ee\u529b\u653b\u51fb Read More \u00bb","og_url":"https:\/\/wpeyes.com\/wordpress\/docs\/\u86ee\u529b\u653b\u51fb","og_site_name":"WordPress\u4e2d\u6587","article_modified_time":"2022-07-03T12:45:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb","url":"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb","name":"\u86ee\u529b\u653b\u51fb - WordPress\u4e2d\u6587","isPartOf":{"@id":"https:\/\/wpeyes.com\/wordpress\/#website"},"datePublished":"2022-07-03T04:50:22+00:00","dateModified":"2022-07-03T12:45:28+00:00","breadcrumb":{"@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e8%9b%ae%e5%8a%9b%e6%94%bb%e5%87%bb#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/wpeyes.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wpeyes.com\/wordpress\/docs"},{"@type":"ListItem","position":3,"name":"\u86ee\u529b\u653b\u51fb"}]},{"@type":"WebSite","@id":"https:\/\/wpeyes.com\/wordpress\/#website","url":"https:\/\/wpeyes.com\/wordpress\/","name":"WordPress\u4e2d\u6587","description":"wpeyes\u6280\u672f\u89c6\u70b9","publisher":{"@id":"https:\/\/wpeyes.com\/wordpress\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpeyes.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Organization","@id":"https:\/\/wpeyes.com\/wordpress\/#organization","name":"WordPress\u4e2d\u6587","url":"https:\/\/wpeyes.com\/wordpress\/","logo":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/","url":"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png","contentUrl":"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png","width":1000,"height":1000,"caption":"WordPress\u4e2d\u6587"},"image":{"@id":"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"qmk","author_link":"https:\/\/wpeyes.com\/wordpress\/archives\/author\/qmk"},"uagb_comment_info":0,"uagb_excerpt":"\u4e0e\u4e13\u6ce8\u4e8e\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u9ed1\u5ba2\u653b\u51fb\u4e0d\u540c\uff0c\u86ee\u529b\u653b\u51fb\u65e8\u5728\u6210\u4e3a\u8bbf\u95ee\u7f51\u7ad9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff1a\u5b83\u4e00\u904d\u53c8\u4e00\u904d\u5730\u5c1d\u8bd5\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u76f4\u5230\u5b83\u8fdb&hellip;","_links":{"self":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/215"}],"collection":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":1,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/215\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/215\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/doc_category?post=215"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/doc_tag?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}