{"id":123,"date":"2016-07-26T12:07:36","date_gmt":"2016-07-26T04:07:36","guid":{"rendered":"http:\/\/www.igaosou.com\/?p=123"},"modified":"2023-04-18T14:31:24","modified_gmt":"2023-04-18T06:31:24","slug":"%e7%8e%bb%e7%92%83%e6%a0%88%e9%81%93%e4%b9%8b%e4%b8%8a","status":"publish","type":"post","link":"http:\/\/www.igaosou.com\/123.html","title":{"rendered":"\u767e\u5ea6spider\u4ecb\u7ecd"},"content":{"rendered":"

1. <\/strong>\u4ec0\u4e48\u662fBaiduspider<\/strong><\/p>\n

Baiduspider\u662f\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u7684\u4e00\u4e2a\u81ea\u52a8\u7a0b\u5e8f\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u8bbf\u95ee\u4e92\u8054\u7f51\u4e0a\u7684\u7f51\u9875\uff0c\u5efa\u7acb\u7d22\u5f15\u6570\u636e\u5e93\uff0c\u4f7f\u7528\u6237\u80fd\u5728\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u4e2d\u641c\u7d22\u5230\u60a8\u7f51\u7ad9\u4e0a\u7684\u7f51\u9875\u3002<\/p>\n

2. Baiduspider<\/strong>\u7684user-agent\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n

\u767e\u5ea6\u5404\u4e2a\u4ea7\u54c1\u4f7f\u7528\u4e0d\u540c\u7684user-agent\uff1a<\/p>\n

\n\n\n\n\n\n\n\n\n\n\n\n
\u4ea7\u54c1\u540d\u79f0<\/strong><\/td>\n\u5bf9\u5e94user-agent<\/strong><\/td>\n<\/tr>\n
\u7f51\u9875\u641c\u7d22<\/td>\nBaiduspider<\/td>\n<\/tr>\n
\u65e0\u7ebf\u641c\u7d22<\/td>\nBaiduspider<\/td>\n<\/tr>\n
\u56fe\u7247\u641c\u7d22<\/td>\nBaiduspider-image<\/td>\n<\/tr>\n
\u89c6\u9891\u641c\u7d22<\/td>\nBaiduspider-video<\/td>\n<\/tr>\n
\u65b0\u95fb\u641c\u7d22<\/td>\nBaiduspider-news<\/td>\n<\/tr>\n
\u767e\u5ea6\u641c\u85cf<\/td>\nBaiduspider-favo<\/td>\n<\/tr>\n
\u767e\u5ea6\u8054\u76df<\/td>\nBaiduspider-cpro<\/td>\n<\/tr>\n
\u5546\u52a1\u641c\u7d22<\/td>\nBaiduspider-ads<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

3. Baiduspider<\/strong>\u5bf9\u4e00\u4e2a\u7f51\u7ad9\u670d\u52a1\u5668\u9020\u6210\u7684\u8bbf\u95ee\u538b\u529b\u5982\u4f55\uff1f<\/strong><\/p>\n

\u4e3a\u4e86\u8fbe\u5230\u5bf9\u76ee\u6807\u8d44\u6e90\u8f83\u597d\u7684\u68c0\u7d22\u6548\u679c\uff0cBaiduspider\u9700\u8981\u5bf9\u60a8\u7684\u7f51\u7ad9\u4fdd\u6301\u4e00\u5b9a\u91cf\u7684\u6293\u53d6\u3002\u6211\u4eec\u5c3d\u91cf\u4e0d\u7ed9\u7f51\u7ad9\u5e26\u6765\u4e0d\u5408\u7406\u7684\u8d1f\u62c5\uff0c\u5e76\u4f1a\u6839\u636e\u670d\u52a1\u5668\u627f \u53d7\u80fd\u529b\uff0c\u7f51\u7ad9\u8d28\u91cf\uff0c\u7f51\u7ad9\u66f4\u65b0\u7b49\u7efc\u5408\u56e0\u7d20\u6765\u8fdb\u884c\u8c03\u6574\u3002\u5982\u679c\u60a8\u89c9\u5f97baiduspider\u7684\u8bbf\u95ee\u884c\u4e3a\u6709\u4efb\u4f55\u4e0d\u5408\u7406\u7684\u60c5\u51b5\uff0c\u60a8\u53ef\u4ee5\u53cd\u9988\u81f3\u53cd\u9988\u4e2d\u5fc3\u3002<\/p>\n

\"baidu\"<\/p>\n

4. <\/strong>\u4e3a\u4ec0\u4e48Baiduspider\u4e0d\u505c\u7684\u6293\u53d6\u6211\u7684\u7f51\u7ad9\uff1f<\/strong><\/p>\n

\u5bf9\u4e8e\u60a8\u7f51\u7ad9\u4e0a\u65b0\u4ea7\u751f\u7684\u6216\u8005\u6301\u7eed\u66f4\u65b0\u7684\u9875\u9762\uff0cBaiduspider\u4f1a\u6301\u7eed\u6293\u53d6\u3002\u6b64\u5916\uff0c\u60a8\u4e5f\u53ef\u4ee5\u68c0\u67e5\u7f51\u7ad9\u8bbf\u95ee\u65e5\u5fd7\u4e2dBaiduspider\u7684\u8bbf\u95ee\u662f\u5426\u6b63\u5e38\uff0c\u4ee5\u9632\u6b62\u6709\u4eba\u6076\u610f\u5192\u5145Baiduspider\u6765\u9891\u7e41\u6293\u53d6\u60a8\u7684\u7f51\u7ad9\u3002 \u5982\u679c\u60a8\u53d1\u73b0Baiduspider\u975e\u6b63\u5e38\u6293\u53d6\u60a8\u7684\u7f51\u7ad9\uff0c\u8bf7\u901a\u8fc7\u53cd\u9988\u4e2d\u5fc3\u53cd\u9988\u7ed9\u6211\u4eec\uff0c\u5e76\u8bf7\u5c3d\u91cf\u7ed9\u51faBaiduspider\u5bf9\u8d35\u7ad9\u7684\u8bbf\u95ee\u65e5\u5fd7\uff0c\u4ee5\u4fbf\u4e8e\u6211\u4eec\u8ddf\u8e2a\u5904\u7406\u3002<\/p>\n

5. <\/strong>\u5982\u4f55\u5224\u65ad\u662f\u5426\u5192\u5145Baiduspider\u7684\u6293\u53d6\uff1f<\/strong><\/p>\n

\u5efa\u8bae\u60a8\u4f7f\u7528DNS\u53cd\u67e5\u65b9\u5f0f\u6765\u786e\u5b9a\u6293\u53d6\u6765\u6e90\u7684ip\u662f\u5426\u5c5e\u4e8e\u767e\u5ea6\uff0c\u6839\u636e\u5e73\u53f0\u4e0d\u540c\u9a8c\u8bc1\u65b9\u6cd5\u4e0d\u540c\uff0c\u5982linux\/windows\/os\u4e09\u79cd\u5e73\u53f0\u4e0b\u7684\u9a8c\u8bc1\u65b9\u6cd5\u5206\u522b\u5982\u4e0b\uff1a<\/p>\n

5.1<\/strong> \u5728linux\u5e73\u53f0\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528host ip\u547d\u4ee4\u53cd\u89e3ip\u6765\u5224\u65ad\u662f\u5426\u6765\u81eaBaiduspider\u7684\u6293\u53d6\u3002Baiduspider\u7684hostname\u4ee5 *.baidu.com \u6216 *.baidu.jp \u7684\u683c\u5f0f\u547d\u540d\uff0c\u975e *.baidu.com \u6216 *.baidu.jp \u5373\u4e3a\u5192\u5145\u3002
\n$ host 123.125.66.120
\n120.66.125.123.in-addr.arpa domain name pointer
\nbaiduspider-123-125-66-120.crawl.baidu.com.
\nhost 119.63.195.254
\n254.195.63.119.in-addr.arpa domain name pointer
\nBaiduMobaider-119-63-195-254.crawl.baidu.jp.<\/p>\n

5.2<\/strong> \u5728windows\u5e73\u53f0\u6216\u8005IBM OS\/2\u5e73\u53f0\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528nslookup ip\u547d\u4ee4\u53cd\u89e3ip\u6765 \u5224\u65ad\u662f\u5426\u6765\u81eaBaiduspider\u7684\u6293\u53d6\u3002\u6253\u5f00\u547d\u4ee4\u5904\u7406\u5668 \u8f93\u5165nslookup xxx.xxx.xxx.xxx\uff08IP\u5730 \u5740\uff09\u5c31\u80fd\u89e3\u6790ip\uff0c \u6765\u5224\u65ad\u662f\u5426\u6765\u81eaBaiduspider\u7684\u6293\u53d6\uff0cBaiduspider\u7684hostname\u4ee5 *.baidu.com \u6216 *.baidu.jp \u7684\u683c\u5f0f\u547d\u540d\uff0c\u975e *.baidu.com \u6216 *.baidu.jp \u5373\u4e3a\u5192\u5145\u3002<\/p>\n

5.3<\/strong> \u5728mac os\u5e73\u53f0\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528dig \u547d\u4ee4\u53cd\u89e3ip\u6765 \u5224\u65ad\u662f\u5426\u6765\u81eaBaiduspider\u7684\u6293\u53d6\u3002\u6253\u5f00\u547d\u4ee4\u5904\u7406\u5668 \u8f93\u5165dig xxx.xxx.xxx.xxx\uff08IP\u5730 \u5740\uff09\u5c31\u80fd\u89e3\u6790ip\uff0c\u6765\u5224\u65ad\u662f\u5426\u6765\u81eaBaiduspider\u7684\u6293\u53d6\uff0cBaiduspider\u7684hostname\u4ee5 *.baidu.com \u6216 *.baidu.jp \u7684\u683c\u5f0f\u547d\u540d\uff0c\u975e *.baidu.com \u6216 *.baidu.jp \u5373\u4e3a\u5192\u5145\u3002<\/p>\n

6. <\/strong>\u6211\u4e0d\u60f3\u6211\u7684\u7f51\u7ad9\u88abBaiduspider\u8bbf\u95ee\uff0c\u6211\u8be5\u600e\u4e48\u505a\uff1f<\/strong><\/p>\n

Baiduspider\u9075\u5b88\u4e92\u8054\u7f51robots\u534f\u8bae\u3002\u60a8\u53ef\u4ee5\u5229\u7528robots.txt\u6587\u4ef6\u5b8c\u5168\u7981\u6b62Baiduspider\u8bbf\u95ee\u60a8\u7684\u7f51\u7ad9\uff0c\u6216\u8005\u7981\u6b62 Baiduspider\u8bbf\u95ee\u60a8\u7f51\u7ad9\u4e0a\u7684\u90e8\u5206\u6587\u4ef6\u3002 \u6ce8\u610f\uff1a\u7981\u6b62Baiduspider\u8bbf\u95ee\u60a8\u7684\u7f51\u7ad9\uff0c\u5c06\u4f7f\u60a8\u7684\u7f51\u7ad9\u4e0a\u7684\u7f51\u9875\uff0c\u5728\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u4ee5\u53ca\u6240\u6709\u767e\u5ea6\u63d0\u4f9b\u641c\u7d22\u5f15\u64ce\u670d\u52a1\u7684\u641c\u7d22\u5f15\u64ce\u4e2d\u65e0\u6cd5\u88ab\u641c\u7d22\u5230\u3002\u5173\u4e8e robots.txt\u7684\u5199\u4f5c\u65b9\u6cd5\uff0c\u8bf7\u53c2\u770b\u6211\u4eec\u7684\u4ecb\u7ecd\uff1arobots.txt\u5199\u4f5c\u65b9\u6cd5
\n\u60a8\u53ef\u4ee5\u6839\u636e\u5404\u4ea7\u54c1\u4e0d\u540c\u7684user-agent\u8bbe\u7f6e\u4e0d\u540c\u7684\u6293\u53d6\u89c4\u5219\uff0c\u5982\u679c\u60a8\u60f3\u5b8c\u5168\u7981\u6b62\u767e\u5ea6\u6240\u6709\u7684\u4ea7\u54c1\u6536\u5f55\uff0c\u53ef\u4ee5\u76f4\u63a5\u5bf9Baiduspider\u8bbe\u7f6e\u7981\u6b62\u6293\u53d6\u3002
\n\u4ee5\u4e0brobots\u5b9e\u73b0\u7981\u6b62\u6240\u6709\u6765\u81ea\u767e\u5ea6\u7684\u6293\u53d6\uff1a
\nUser-agent: Baiduspider<\/em>
\nDisallow: \/<\/em><\/p>\n

\u4ee5\u4e0brobots\u5b9e\u73b0\u7981\u6b62\u6240\u6709\u6765\u81ea\u767e\u5ea6\u7684\u6293\u53d6\u4f46\u5141\u8bb8\u56fe\u7247\u641c\u7d22\u6293\u53d6\/image\/\u76ee\u5f55\uff1a
\nUser-agent: Baiduspider<\/em>
\nDisallow: \/<\/em><\/p>\n

User-agent: Baiduspider-image<\/em>
\nAllow: \/image\/<\/em>
\n\u8bf7\u6ce8\u610f\uff1aBaiduspider-cpro\u6293\u53d6\u7684\u7f51\u9875\u5e76\u4e0d\u4f1a\u5efa\u5165\u7d22\u5f15\uff0c\u53ea\u662f\u6267\u884c\u4e0e\u5ba2\u6237\u7ea6\u5b9a\u7684\u64cd\u4f5c\uff0c\u6240\u4ee5\u4e0d\u9075\u5b88robots\u534f\u8bae\uff0c\u5982\u679cBaiduspider-cpro\u7ed9\u60a8\u9020\u6210\u4e86\u56f0\u6270\uff0c\u8bf7\u8054\u7cfbunion1@baidu.com\u3002<\/p>\n

Baiduspider-ads\u6293\u53d6\u7684\u7f51\u9875\u5e76\u4e0d\u4f1a\u5efa\u5165\u7d22\u5f15\uff0c\u53ea\u662f\u6267\u884c\u4e0e\u5ba2\u6237\u7ea6\u5b9a\u7684\u64cd\u4f5c\uff0c\u6240\u4ee5\u4e0d\u9075\u5b88robots\u534f\u8bae\uff0c\u5982\u679cBaiduspider-ads\u7ed9\u60a8\u9020\u6210\u4e86\u56f0\u6270\uff0c\u8bf7\u8054\u7cfb\u60a8\u7684\u5ba2\u6237\u670d\u52a1\u4e13\u5458\u3002<\/p>\n

7. <\/strong>\u4e3a\u4ec0\u4e48\u6211\u7684\u7f51\u7ad9\u5df2\u7ecf\u52a0\u4e86robots.txt\uff0c\u8fd8\u80fd\u5728\u767e\u5ea6\u641c\u7d22\u51fa\u6765\uff1f<\/strong><\/p>\n

\u56e0\u4e3a\u641c\u7d22\u5f15\u64ce\u7d22\u5f15\u6570\u636e\u5e93\u7684\u66f4\u65b0\u9700\u8981\u65f6\u95f4\u3002\u867d\u7136Baiduspider\u5df2\u7ecf\u505c\u6b62\u8bbf\u95ee\u60a8\u7f51\u7ad9\u4e0a\u7684\u7f51\u9875\uff0c\u4f46\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u6570\u636e\u5e93\u4e2d\u5df2\u7ecf\u5efa\u7acb\u7684\u7f51\u9875\u7d22\u5f15\u4fe1\u606f\uff0c\u53ef\u80fd\u9700\u8981\u6570\u6708\u65f6\u95f4\u624d\u4f1a\u6e05\u9664\u3002\u53e6\u5916\u4e5f\u8bf7\u68c0\u67e5\u60a8\u7684robots\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002
\n\u5982\u679c\u60a8\u7684\u62d2\u7edd\u88ab\u6536\u5f55\u9700\u6c42\u975e\u5e38\u6025\u8feb\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u53cd\u9988\u4e2d\u5fc3\u53cd\u9988\u8bf7\u6c42\u5904\u7406\u3002<\/p>\n

8. <\/strong>\u6211\u5e0c\u671b\u6211\u7684\u7f51\u7ad9\u5185\u5bb9\u88ab\u767e\u5ea6\u7d22\u5f15\u4f46\u4e0d\u88ab\u4fdd\u5b58\u5feb\u7167\uff0c\u6211\u8be5\u600e\u4e48\u505a\uff1f<\/strong><\/p>\n

Baiduspider\u9075\u5b88\u4e92\u8054\u7f51meta robots\u534f\u8bae\u3002\u60a8\u53ef\u4ee5\u5229\u7528\u7f51\u9875meta\u7684\u8bbe\u7f6e\uff0c\u4f7f\u767e\u5ea6\u663e\u793a\u53ea\u5bf9\u8be5\u7f51\u9875\u5efa\u7d22\u5f15\uff0c\u4f46\u5e76\u4e0d\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u663e\u793a\u8be5\u7f51\u9875\u7684\u5feb\u7167\u3002
\n\u548crobots\u7684\u66f4\u65b0\u4e00\u6837\uff0c\u56e0\u4e3a\u641c\u7d22\u5f15\u64ce\u7d22\u5f15\u6570\u636e\u5e93\u7684\u66f4\u65b0\u9700\u8981\u65f6\u95f4\uff0c\u6240\u4ee5\u867d\u7136\u60a8\u5df2\u7ecf\u5728\u7f51\u9875\u4e2d\u901a\u8fc7meta\u7981\u6b62\u4e86\u767e\u5ea6\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u663e\u793a\u8be5\u7f51\u9875\u7684\u5feb\u7167\uff0c\u4f46\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u6570\u636e\u5e93\u4e2d\u5982\u679c\u5df2\u7ecf\u5efa\u7acb\u4e86\u7f51\u9875\u7d22\u5f15\u4fe1\u606f\uff0c\u53ef\u80fd\u9700\u8981\u4e8c\u81f3\u56db\u5468\u624d\u4f1a\u5728\u7ebf\u4e0a\u751f\u6548\u3002<\/p>\n

9. Baiduspider<\/strong>\u6293\u53d6\u9020\u6210\u7684\u5e26\u5bbd\u5835\u585e\uff1f<\/strong><\/p>\n

Baiduspider\u7684\u6b63\u5e38\u6293\u53d6\u5e76\u4e0d\u4f1a\u9020\u6210\u60a8\u7f51\u7ad9\u7684\u5e26\u5bbd\u5835\u585e\uff0c\u9020\u6210\u6b64\u73b0\u8c61\u53ef\u80fd\u662f\u7531\u4e8e\u6709\u4eba\u5192\u5145Baiduspider\u6076\u610f\u6293\u53d6\u3002\u5982\u679c\u60a8\u53d1\u73b0\u6709\u540d\u4e3aBaiduspider\u7684agent\u6293\u53d6\u5e76\u4e14\u9020\u6210\u5e26\u5bbd\u5835\u585e\uff0c\u8bf7\u5c3d\u5feb\u548c\u6211\u4eec\u8054\u7cfb\u3002\u60a8\u53ef\u4ee5\u5c06\u4fe1\u606f\u53cd\u9988\u81f3\u53cd\u9988\u4e2d\u5fc3\uff0c\u5982\u679c\u80fd\u591f\u63d0\u4f9b\u60a8\u7f51\u7ad9\u8be5\u65f6\u6bb5\u7684\u8bbf\u95ee\u65e5\u5fd7\u5c06\u66f4\u52a0\u6709\u5229\u4e8e\u6211\u4eec\u7684\u5206\u6790\u3002<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

1. \u4ec0\u4e48\u662fBaiduspider Baiduspider\u662f\u767e\u5ea6\u641c\u7d22\u5f15\u64ce\u7684\u4e00\u4e2a\u81ea\u52a8\u7a0b\u5e8f\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u8bbf\u95ee\u4e92\u8054\u7f51\u4e0a […]<\/p>\n","protected":false},"author":1,"featured_media":294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gfzc"],"_links":{"self":[{"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":0,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/media\/294"}],"wp:attachment":[{"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.igaosou.com\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}