{"id":6571,"date":"2012-07-09T06:00:19","date_gmt":"2012-07-08T21:00:19","guid":{"rendered":"http:\/\/www.suzukikenichi.com\/blog\/?p=6571"},"modified":"2012-07-09T04:49:10","modified_gmt":"2012-07-08T19:49:10","slug":"when-to-use-allow-directive-in-robots-txt","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/when-to-use-allow-directive-in-robots-txt\/","title":{"rendered":"robots.txt\u3067Allow\u3092\u4f7f\u3046\u306e\u306f\u3069\u3093\u306a\u6642\uff1f"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u5bfe\u8c61: \u4e2d\u301c\u4e0a\u7d1a]<\/p>\n<p><span class=\"right\"><img decoding=\"async\" src=\"\/\/www.suzukikenichi.com\/images\/googlebot-kun2.png\" alt=\"Googlebot\u304f\u3093\" \/><\/span><br \/>\n\u8abf\u3079\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u5fd8\u5099\u9332\u3082\u517c\u306d\u305f\u300c<a href=\"\/\/www.suzukikenichi.com\/blog\/how-to-create-robotstxt\/\">robots.txt<\/a>\u306e\u201cAllow\u201d\u306e\u4f7f\u3044\u65b9\u300d\u306e\u89e3\u8aac\u304c\u4eca\u65e5\u306e\u30c6\u30fc\u30de\u3067\u3059\u3002<\/p>\n<p class=\"p40-t\">robots.txt\u306f\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30af\u30ed\u30fc\u30e9\u306e\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u82f1\u8a9e\u3067\u300c\u8a31\u53ef\u3057\u306a\u3044\u300d\u3092\u610f\u5473\u3059\u308b\u201cDisallow\u201d\u3068\u3044\u3046\u547d\u4ee4\u3092\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306brobots.txt\u306b\u8a18\u8ff0\u3057\u305f\u3068\u3057\u307e\u3059\uff08\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u8a18\u8ff0\u306f\u7701\u7565\u3057\u3066\u307e\u3059\uff09\u3002<\/p>\n<blockquote><p><code><\/p>\n<pre>Disallow: \/private\/<\/pre>\n<p><\/code><\/p><\/blockquote>\n<p>\u3053\u306e\u5834\u5408\u306f\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u306a\u304b\u306b\u3042\u308b\u300c<code>private<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\u30af\u30ed\u30fc\u30e9\u306e\u30a2\u30af\u30bb\u30b9\u3092\u30d6\u30ed\u30c3\u30af\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"p40-t\">\u3068\u3053\u308d\u304c\u82f1\u8a9e\u3067\u300c\u8a31\u53ef\u3059\u308b\u300d\u3092\u610f\u5473\u3059\u308b\u201c<strong>Allow<\/strong>\u201d\u3068\u3044\u3046\u547d\u4ee4\u3092robots.txt\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3088\u304f\u3042\u308b\u306e\u304c\u6b21\u306e\u3088\u3046\u306arobots.txt\u3067\u3059\u3002<\/p>\n<blockquote><p><code><\/p>\n<pre>User-Agent: *\r\nAllow: \/<\/pre>\n<p><\/code><\/p><\/blockquote>\n<p>\u300c\u3059\u3079\u3066\u306e\u30af\u30ed\u30fc\u30e9\u306b\u305f\u3044\u3057\u3066\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\uff08URL\uff09\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u300d\u3068\u3044\u3046\u547d\u4ee4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u899a\u3048\u3066\u304a\u3044\u3066\u307b\u3057\u3044\u306e\u306f\u3001<strong>Allow\u306frobots.txt\u306e\u6a19\u6e96\u306e\u4ed5\u69d8\u3067\u306f\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044<\/strong>\u62e1\u5f35\u4ed5\u69d8\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Google\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3059\u3079\u3066\u306e\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30af\u30ed\u30fc\u30e9\u304cAllow\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u77e5\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u3053\u3067\u3053\u308c\u4ee5\u964d\u306fGoogle\u306b\u304a\u3051\u308brobots.txt\u306eAllow\u306e\u52d5\u4f5c\u306e\u8aac\u660e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u4e0a\u306e\u4f8b\u3067\u6319\u3052\u305f\u3059\u3079\u3066\u3092\u8a31\u53ef\u3059\u308bAllow\u306erobots.txt\u306e\u4ef6\u306b\u623b\u3063\u3066\u3001\u3053\u306e\u8a18\u8ff0\u306f\u4e0d\u8981\u3067\u3059\u3002<br \/>\n\u300c\u4e0d\u8981\u300d\u306f\u8a00\u3044\u3059\u304e\u3068\u3057\u3066\u3082\u50d5\u304b\u3089\u3059\u308b\u3068\u7d20\u4eba\u3063\u307d\u304f\u898b\u3048\u307e\u3059\uff08SEO\u3092\u4ed5\u4e8b\u306b\u3057\u3066\u308b\u4eba\u304c\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u306e\u306a\u3089\u306a\u304a\u3055\u3089\uff09\u3002<\/p>\n<p>\u7f6e\u3044\u3066\u306f\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u6c7a\u3057\u3066\u3042\u308a\u307e\u305b\u3093\u304c\u3001Allow\u306f\u3059\u3079\u3066\u306e\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u70b9\u3092\u8003\u3048\u308b\u3068\u6b21\u306e\u8a18\u8ff0\u304c\u3088\u308a\u9069\u5207\u3067\u3057\u3087\u3046\u3002<\/p>\n<blockquote><p><code><\/p>\n<pre>User-Agent: *\r\nDisallow:<\/pre>\n<p><\/code><\/p><\/blockquote>\n<p>\u300c\u3069\u306e\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30af\u30ed\u30fc\u30e9\u306b\u5bfe\u3057\u3066\u3082\u4f55\u3082\u62d2\u5426\u3057\u306a\u3044\u300d\u3001\u3059\u306a\u308f\u3061\u3059\u3079\u3066\u8a31\u53ef\u3059\u308b\u3068\u3044\u3046\u8a18\u8ff0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u304f\u306frobots.txt\u305d\u306e\u3082\u306e\u3092\u7f6e\u304b\u306a\u3044\u3068\u3044\u3046\u9078\u629e\u3082\u53d6\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3068\u304d\u306frobots.txt\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306f404\/410\u3092\u5fc5\u305a\u8fd4\u3059\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u203b\u8a73\u3057\u304f\u306f\u3001<a href=\"\/\/www.suzukikenichi.com\/blog\/if-i-dont-need-to-block-crawlers-should-i-create-robots-txt-file\/\">\u30af\u30ed\u30fc\u30eb\u3092\u4e00\u5207\u30d6\u30ed\u30c3\u30af\u3057\u306a\u3044\u3068\u304d\u306erobots.txt<\/a>\u3092\u8aac\u660e\u3057\u305f\u904e\u53bb\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"p40-t\">\u305d\u308c\u3067\u306f\u3001\u3069\u3093\u306a\u5834\u9762\u3067Allow\u3092\u4f7f\u3046\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u4e00\u822c\u7684\u306b\u591a\u3044\u306e\u306f\u7279\u5b9a\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u3060\u3051\u4f8b\u5916\u7684\u306b\u30af\u30ed\u30fc\u30eb\u3092\u8a31\u53ef\u3059\u308b\u5834\u9762\u3067\u3059\u3002<\/p>\n<blockquote><p><code><\/p>\n<pre>Disallow: \/private\/\r\nAllow: \/private\/sample.html<\/pre>\n<p><\/code>\n<\/p><\/blockquote>\n<p>\u4e0a\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3001\u300c<code>private<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u306a\u304b\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5bfe\u3059\u308b\u30af\u30ed\u30fc\u30eb\u306f\u7981\u6b62\u3059\u308b\u3051\u308c\u3069\u3001<code>sample.html<\/code>\u3078\u306e\u30af\u30ed\u30fc\u30eb\u3060\u3051\u306f\u4f8b\u5916\u3068\u3057\u3066\u8a31\u53ef\u3059\u308b\u3068\u3044\u3046\u547d\u4ee4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u540c\u3058<code>private<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u306a\u304b\u306b\u3001\u305f\u3068\u3048\u3070<code>abc.html<\/code>\u3084<code>xyz.html<\/code>\u304c\u3042\u3063\u305f\u3068\u3059\u308b\u3068\u3001\u305d\u308c\u3089\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p class=\"p40-t\">\u3053\u3053\u3067Disallow\u3068Allow\u306e\u3069\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u306e\u304b\u3068\u3044\u3046\u7591\u554f\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u3088\u308a\u7279\u5b9a\u3055\u308c\u305f\u30d1\u30b9\u3001\u8a00\u3044\u63db\u3048\u308b\u3068\u3088\u308a\u9577\u3044\u30d1\u30b9\u306b\u5bfe\u3059\u308b\u547d\u4ee4\u304c\u512a\u5148<\/strong>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>1\uff09<\/p>\n<blockquote><p><code><\/p>\n<pre>Disallow: \/\r\nAllow: \/aaa\/<\/pre>\n<p><\/code>\n<\/p><\/blockquote>\n<p>1)\u306f\u3001\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001Allow\u306e\u307b\u3046\u304c\u30d1\u30b9\u304c\u9577\u3044\u306e\u3067\u3001\u300c<code>aaa<\/code>\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u8a31\u53ef\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>2)<\/p>\n<blockquote><p><code><\/p>\n<pre>Disallow: \/aaa\/\r\nAllow: \/aaa\/bbb.html<\/pre>\n<p><\/code>\n<\/p><\/blockquote>\n<p>2)\u3082Allow\u306e\u307b\u3046\u304c\u30d1\u30b9\u304c\u9577\u3044\u306e\u3067\u3001<code>\/aaa\/bbb.html<\/code>\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u8a31\u53ef\u3055\u308c\u307e\u3059\u3002<br \/>\n<code>\/aaa\/<\/code>\u5185\u306b\u3042\u308b<code>bbb.html<\/code>\u4ee5\u5916\u306e\u305d\u306e\u4ed6\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>3)<\/p>\n<blockquote><p><code><\/p>\n<pre>Disallow: \/aaa\/\r\nAllow: \/aaa\/bbb\/\r\nDisallow: \/aaa\/bbb\/ccc\/<\/pre>\n<p><\/code>\n<\/p><\/blockquote>\n<p>3)\u306f\u3069\u3046\u3067\u3057\u3087\u3046\uff1f<br \/>\n<code>\/aaa\/red.html<\/code>\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<br \/>\n<code>\/aaa\/bbb\/blue.html<\/code>\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u8a31\u53ef\u3055\u308c\u307e\u3059\u3002<br \/>\n<code>\/aaa\/bbb\/ccc\/green.html<\/code>\u3078\u306e\u30af\u30ed\u30fc\u30eb\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3082\u3063\u3068\u3082\u3053\u3093\u306a\u5909\u5247\u7684\u306a\u8a18\u8ff0\u3092robots.txt\u306b\u66f8\u304f\u4eba\u306f\u3044\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u7406\u8ad6\u7684\u306b\u306f\u3053\u306e\u3088\u3046\u306b\u632f\u308b\u821e\u3044\u307e\u3059\u3002<\/p>\n<p class=\"p60-t\">\u3068\u3044\u3046\u3053\u3068\u3067\u307e\u3068\u3081\u308b\u3068\u3001<strong>robots.txt\u306eAllow\u306f\u30d6\u30ed\u30c3\u30af\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u4f7f\u3046\u7406\u7531\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u30d6\u30ed\u30c3\u30af\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u3042\u308b\u3051\u308c\u3069\u305d\u306e\u30d1\u30b9\u306b\u542b\u307e\u308c\u308b\u4e00\u90e8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f8b\u5916\u7684\u306b\u8a31\u53ef\u3059\u308b\u3068\u304d\u306bAllow\u3092\u4f7f\u3044\u307e\u3059\u3002<\/strong><\/p>\n<p><strong>Disallow\u3068Allow\u306b\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u547d\u4ee4\u304c\u5b58\u5728\u3059\u308b\u3068\u304d\u306f\u3001\u3088\u308a\u7279\u5b9a\u3055\u308c\u305f\u65b9\u8a00\u3044\u63db\u3048\u308b\u3068\u6307\u5b9a\u3059\u308b\u30d1\u30b9\u306e\u9577\u3044\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/strong><\/p>\n<p class=\"p40-t\">\u3010\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3011<\/p>\n<ul>\n<li><a href=\"https:\/\/developers.google.com\/webmasters\/control-crawl-index\/docs\/robots_txt\">Robots.txt Specifications &#8211; Webmasters \u2014 Google Developers<\/a><\/li>\n<li><a href=\"http:\/\/support.google.com\/webmasters\/bin\/answer.py?hl=ja&#038;answer=156449\">robots.txt \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30da\u30fc\u30b8\u3092\u30d6\u30ed\u30c3\u30af\u307e\u305f\u306f\u524a\u9664\u3059\u308b &#8211; \u30a6\u30a7\u30d6\u30de\u30b9\u30bf\u30fc \u30c4\u30fc\u30eb \u30d8\u30eb\u30d7<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>robots.txt\u306eAllow\u306e\u4f7f\u3044\u9053\u3092\u89e3\u8aac\u3059\u308b\u3002\u30d6\u30ed\u30c3\u30af\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u3042\u308b\u304c\u305d\u306e\u30d1\u30b9\u306b\u542b\u307e\u308c\u308b\u4e00\u90e8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f8b\u5916\u7684\u306b\u8a31\u53ef\u3059\u308b\u3068\u304d\u306bAllow\u3092\u4f7f\u3046\u3002Disallow\u3068Allow\u306b\u30d0\u30c3\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u547d\u4ee4\u304c\u5b58\u5728\u3059\u308b\u3068\u304d\u306f\u3001\u3088\u308a\u7279\u5b9a\u3055\u308c\u305f\u65b9\u8a00\u3044\u63db\u3048\u308b\u3068\u6307\u5b9a\u3059\u308b\u30d1\u30b9\u306e\u9577\u3044\u307b\u3046\u304c\u512a\u5148\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[62],"class_list":["post-6571","post","type-post","status-publish","format-standard","category-google-seo","tag-robotstxt"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/6571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/comments?post=6571"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/6571\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=6571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=6571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=6571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}