【问题标题】:Network unreachable: robots.txt unreachable网络无法访问:robots.txt 无法访问
【发布时间】:2014-01-29 06:41:30
【问题描述】:

我在尝试将我的网站添加到 Google Webmaster tools ->http://www.hyponomist.com/ 时收到错误“Network unreachable: robots.txt unreachable

你可以查看我的robots.txt at heresitemap.xml at here

我在这里和那里阅读其他帖子,但无法解决/理解。是什么导致了这个问题。另外,我尝试使用 Fetch as Googlebot 工具下载页面,但出现了同样的错误。

有人知道吗?

提前致谢!

【问题讨论】:

标签: robots.txt googlebot


【解决方案1】:

当用户代理字符串显示请求来自 Googlebot 时,您的网络服务器返回 503 错误,而当请求来自浏览器时返回 200。如果您使用诸如 Fiddler (http://fiddler2.com/) 之类的 http 诊断工具,您可以看到这一点。

如果您使用 Fiddler 发送与浏览器相同的请求:

GET http://www.hyponomist.com/robots.txt HTTP/1.1
Host: www.hyponomist.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.72 Safari/537.36
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

回复是:

HTTP/1.1 200 OK
Server: nginx/1.4.4
Date: Fri, 10 Jan 2014 21:34:42 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Retry-After: 18000
Last-Modified: Fri, 10 Jan 2014 20:43:28 GMT
Content-Encoding: gzip

如果您更改用户代理以模仿 Googlebot:

GET http://www.hyponomist.com/robots.txt HTTP/1.1
Host: www.hyponomist.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

那么响应是:

HTTP/1.1 503 Service Temporarily Unavailable
Server: nginx/1.4.4
Date: Fri, 10 Jan 2014 21:35:25 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 234
Connection: keep-alive
Retry-After: 18000

究竟为什么会这样,我不能告诉你。 503 通常是服务器暂时过载时发送的错误,但这里显然不是这种情况。也许您的防火墙配置不当,并且已根据请求频率将 Googlebot 列入黑名单?查看您的防火墙设置和服务器配置。

【讨论】:

    【解决方案2】:

    删除尾部斜杠(使用http://www.hyponomist.com 而不是http://www.hyponomist.com/)可能会有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-19
      相关资源
      最近更新 更多