Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
我做了一些挖掘,结果发现 Facebook 确实收到了 403 响应。这就是我所做的:
$ nc -l -p 8000 > fbbot-request listening on [any] 8000 ...
在 http://mydebughost: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
现在将 Host 标头更改为 racunovodstvo.com.ba< /code> 并执行请求:
Host
racunovodstvo.com.ba< /code> 并执行请求:
$ 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
经过更多的挖掘,网络服务器对 Range: bytes=0-40960 标头感到困惑。
Range: bytes=0-40960
I did some digging and and it seams as Facebook actually get a 403 response. Here is what i did:
Run the debugger on http://mydebughost:8000 and I get:
Now change the Host header to racunovodstvo.com.ba and do the request:
racunovodstvo.com.ba
And after some more digging it seams as the web server get confused by the Range: bytes=0-40960 header.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
我做了一些挖掘,结果发现 Facebook 确实收到了 403 响应。这就是我所做的:
在
http://mydebughost:8000
上运行调试器,我得到:现在将
Host
标头更改为racunovodstvo.com.ba< /code> 并执行请求:
经过更多的挖掘,网络服务器对
Range: bytes=0-40960
标头感到困惑。I did some digging and and it seams as Facebook actually get a 403 response. Here is what i did:
Run the debugger on
http://mydebughost:8000
and I get:Now change the
Host
header toracunovodstvo.com.ba
and do the request:And after some more digging it seams as the web server get confused by the
Range: bytes=0-40960
header.