Facebook没有抓住我的网站 [英] Facebook isn't crawling my site

查看:165
本文介绍了Facebook没有抓住我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发布我的网站的链接到Facebook,它现在显示缩略图,它显示我的旧网站的标题。我只是在我的网站上添加了开放的代码,但是这并没有什么帮助。当我在Facebook调试中查看我的网站时,会显示回复代码:403.我想这意味着我的网站阻止了Facebook机器人,但是我看不出这是怎么回事。最近一切都很好。如果是这种情况,可以告诉我如何解除阻止吗?

When I publish link of my site to facebook, it's now showing thumbnails and it's showing my old site's titles. I just added opengraph code to my site, but that don't help. When I check my site in facebook debug, it shows Response code: 403. I guess this means that my site is blocking facebook bots, but I don't see how is this possible. Since recently everything worked fine. If this is the case, can you tell me how to unblock it...

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F %2Fracunovodstvo.com.ba

推荐答案

我做了一些挖掘和接缝,因为Facebook实际上得到了一个403响应。这是我做的:

I did some digging and and it seams as Facebook actually get a 403 response. Here is what i did:

$ nc -l -p 8000 > fbbot-request
listening on [any] 8000 ...

运行调试器 http:// mydebughost:8000 我得到:

connect to [78.108.54.9] from out-fc245.tfbnw.net [66.220.153.245] 48731
$ cat fbbot-request 
GET / HTTP/1.1
User-Agent: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
Host: mydebughost:8000
Accept: */*
Accept-Encoding: deflate, gzip
Range: bytes=0-40960
Connection: close

现在更改主机标题到 racunovodstvo.com.ba 并执行请求:

Now change the Host header to racunovodstvo.com.ba and do the request:

$ cat fbbot-request | nc racunovodstvo.com.ba 80 | head
HTTP/1.1 403 Forbidden
Date: Sat, 31 Dec 2011 14:29:48 GMT
Server: Apache
Last-Modified: Mon, 02 May 2011 07:52:14 GMT
ETag: "444007-1094-4dbe62ae"
Accept-Ranges: bytes
Content-Length: 4244
Connection: close
Content-Type: text/html

随着网络服务器被范围:bytes = 0-40960 标题。

And after some more digging it seams as the web server get confused by the Range: bytes=0-40960 header.

这篇关于Facebook没有抓住我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆