{"id":1392,"date":"2017-11-27T13:43:09","date_gmt":"2017-11-27T05:43:09","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1392"},"modified":"2017-11-27T13:43:09","modified_gmt":"2017-11-27T05:43:09","slug":"%e7%bd%91%e7%ab%99robots%e5%8d%8f%e8%ae%ae%e5%8f%8arobots-txt-%e6%96%87%e4%bb%b6%e5%86%99%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1392.html","title":{"rendered":"\u7f51\u7ad9robots\u534f\u8bae\u53carobots.txt \u6587\u4ef6\u5199\u6cd5"},"content":{"rendered":"

Robots\u4e4b\u6240\u4ee5\u79f0\u4e4b\u4e3a\u534f\u8bae\u5c31\u662f\u56e0\u4e3a\u5b83\u4e0d\u662f \u201c\u547d\u4ee4\u201d \u800c\u662f\u8ddf\u641c\u7d22\u5f15\u64ce\u722c\u866b\u95f4\u7684\u5355\u65b9\u9762\u534f\u8bae\u3002\u56e0\u800c robots \u4e2d\u7684\u8bbe\u7f6e\u5e76\u4e0d\u610f\u5473\u7740100%\u7684\u751f\u6548\uff0c\u4f46\u90a3\u4e9b\u77e5\u540d\u541b\u5b50\u5982 Google Yahoo Bing Baidu \u7b49\u641c\u7d22\u5f15\u64ce\u90fd\u652f\u6301\uff0c\u6240\u8c13\u5c0f\u4eba\u4eec\u4e0d\u7ba1\u4e5f\u7f62\u3002<\/p>\n

Robots \u534f\u8bae\u6709\u4ec0\u4e48\u4f5c\u7528\u5462\uff1f<\/p>\n

robots\u534f\u8bae\u7528\u6765\u544a\u77e5\u641c\u7d22\u5f15\u64ce\u54ea\u4e9b\u9875\u9762\u80fd\u88ab\u6293\u53d6\uff0c\u54ea\u4e9b\u9875\u9762\u4e0d\u80fd\u88ab\u6293\u53d6\uff1b\u53ef\u4ee5\u5c4f\u853d\u4e00\u4e9b\u7f51\u7ad9\u4e2d\u6bd4\u8f83\u5927\u7684\u6587\u4ef6\uff0c\u5982\uff1a\u56fe\u7247\uff0c\u97f3\u4e50\uff0c\u89c6\u9891\u7b49\uff0c\u8282\u7701\u670d\u52a1\u5668\u5e26\u5bbd\uff1b\u53ef\u4ee5\u5c4f\u853d\u7ad9\u70b9\u7684\u4e00\u4e9b\u6b7b\u94fe\u63a5\u3002\u65b9\u4fbf\u641c\u7d22\u5f15\u64ce\u6293\u53d6\u7f51\u7ad9\u5185\u5bb9\uff1b\u8bbe\u7f6e\u7f51\u7ad9\u5730\u56fe\u8fde\u63a5\uff0c\u65b9\u4fbf\u5f15\u5bfc\u8718\u86db\u722c\u53d6\u9875\u9762\u3002<\/p>\n

\u8ba9\u6211\u4eec\u6765\u4e86\u89e3\u4e0b Robots \u90fd\u6709\u54ea\u4e9b\u5199\u6cd5<\/p>\n

User-agent: * \u8fd9\u91cc\u7684 * \u4ee3\u8868\u7684\u6240\u6709\u7684\u641c\u7d22\u5f15\u64ce\u79cd\u7c7b\uff0c*\u662f\u4e00\u4e2a\u901a\u914d\u7b26
\nDisallow: \/admin\/ \u8fd9\u91cc\u5b9a\u4e49\u662f\u7981\u6b62\u722c\u5bfbadmin\u76ee\u5f55\u4e0b\u9762\u7684\u76ee\u5f55
\nDisallow: \/cgi-bin\/*.htm \u7981\u6b62\u8bbf\u95ee\/cgi-bin\/\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u4ee5\u201d.htm\u201c\u4e3a\u540e\u7f00\u7684URL(\u5305\u542b\u5b50\u76ee\u5f55)\u3002
\nDisallow: \/*?* \u7981\u6b62\u8bbf\u95ee\u7f51\u7ad9\u4e2d\u6240\u6709\u5305\u542b\u95ee\u53f7 (?) \u7684\u7f51\u5740
\nDisallow: \/.jpg$ \u7981\u6b62\u6293\u53d6\u7f51\u9875\u6240\u6709\u7684.jpg\u683c\u5f0f\u7684\u56fe\u7247
\nDisallow: \/ab\/adc.html \u7981\u6b62\u722c\u53d6ab\u6587\u4ef6\u5939\u4e0b\u9762\u7684adc.html\u6587\u4ef6\u3002
\nAllow: \/cgi-bin\/\u3000\u8fd9\u91cc\u5b9a\u4e49\u662f\u5141\u8bb8\u722c\u5bfbcgi-bin\u76ee\u5f55\u4e0b\u9762\u7684\u76ee\u5f55
\nAllow: \/tmp \u8fd9\u91cc\u5b9a\u4e49\u662f\u5141\u8bb8\u722c\u5bfbtmp\u7684\u6574\u4e2a\u76ee\u5f55
\nAllow: .htm$ \u4ec5\u5141\u8bb8\u8bbf\u95ee\u4ee5\u201d.htm\u201d\u4e3a\u540e\u7f00\u7684URL\u3002\u3000
\nAllow: .gif$ \u5141\u8bb8\u6293\u53d6\u7f51\u9875\u548cgif\u683c\u5f0f\u56fe\u7247
\nSitemap: \u7f51\u7ad9\u5730\u56fe \u544a\u8bc9\u722c\u866b\u8fd9\u4e2a\u9875\u9762\u662f\u7f51\u7ad9\u5730\u56fe
\nrobots.txt\u6587\u4ef6\u5e94\u8be5\u653e\u7f6e\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u3002\u5f53\u641c\u7d22\u5f15\u64ce\u7684\u722c\u866b\u4eec\u8fdb\u5165\u7f51\u7ad9\u65f6\u9996\u5148\u4f1a\u68c0\u67e5\u8be5\u7f51\u7ad9\u4e2d\u662f\u5426\u5b58\u5728 robots.txt \u8fd9\u4e2a\u6587\u4ef6\uff0c\u5982\u679c\u722c\u866b\u627e\u5230\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5b83\u5c31\u4f1a\u6839\u636e\u8fd9\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u6765\u786e\u5b9a\u5b83\u8bbf\u95ee\u6743\u9650\u7684\u8303\u56f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Robots\u4e4b\u6240\u4ee5\u79f0\u4e4b\u4e3a\u534f\u8bae\u5c31\u662f\u56e0\u4e3a\u5b83\u4e0d\u662f \u201c\u547d\u4ee4\u201d \u800c\u662f\u8ddf\u641c\u7d22\u5f15\u64ce\u722c\u866b\u95f4\u7684\u5355\u65b9\u9762\u534f\u8bae\u3002\u56e0\u800c robots \u4e2d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[422,421,423],"class_list":["post-1392","post","type-post","status-publish","format-standard","hentry","category-wljs","tag-robots-txt","tag-robots","tag-423"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1392"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}