【问题标题】:what is this urls that are changed when we click them当我们单击它们时,这些 url 会发生什么变化
【发布时间】:2014-05-16 17:19:06
【问题描述】:

在 facebook 上,我看到类似这样的页面、帖子网址

http://econ.st/1dQAfN2

当您单击它(或手动复制并粘贴它)时,它会变为 actual 链接,即http://www.economist.com/blogs/graphicdetail/2014/04/daily-chart-1?fsrc=scn/fb/wl/dc/putinspipelines

请问第一个链接是什么?为什么单击它会更改为第二个链接? 这不是改编我猜。

我在 facebook 和社交网络上经常看到这些链接。

谢谢

【问题讨论】:

  • 为什么你猜它没有重定向?

标签: facebook url web


【解决方案1】:

页面响应

http://en.wikipedia.org/wiki/HTTP_301, 见 1)

然后您的浏览器会转到http://econ.trib.al/QKMTguP,请参见 2)

去哪里http://econ.st/1jF8V4a

从哪里到http://econ.trib.al/wvPqtzG,见 3)

去哪里http://www.economist.com/blogs/graphicdetail/2014/04/daily-chart-1?fsrc=scn/fb/wl/dc/putinspipelines

1)

   $ curl -v http://econ.st/1dQAfN2
    * Adding handle: conn: 0x5d7e80
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * - Conn 0 (0x5d7e80) send_pipe: 1, recv_pipe: 0
    * About to connect() to econ.st port 80 (#0)
    *   Trying 69.58.188.49...
    * Connected to econ.st (69.58.188.49) port 80 (#0)
    > GET /1dQAfN2 HTTP/1.1
    > User-Agent: curl/7.30.0
    > Host: econ.st
    > Accept: */*
    >
    < HTTP/1.1 301 Moved
    * Server nginx is not blacklisted
    < Server: nginx
    < Date: Fri, 04 Apr 2014 11:53:21 GMT
    < Content-Type: text/html; charset=utf-8
    < Connection: keep-alive
    < Set-Cookie: _bit=533e9d31-00126-02167-2e1cf10a;domain=.econ.st;expires=Wed Oct  1 11:53:21 2014;path=/; HttpOnly
    < Cache-control: private; max-age=90
    < Location: http://econ.trib.al/QKMTguP
    < MIME-Version: 1.0
    < Content-Length: 119
    <
    <html>
    <head>
    <title>bit.ly</title>
    </head>
    <body>
    <a href="http://econ.trib.al/QKMTguP">moved here</a>
    </body>
    </html>* Connection #0 to host econ.st left intact

2)

$ curl -v http://econ.trib.al/QKMTguP
* Adding handle: conn: 0x5a7e80
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x5a7e80) send_pipe: 1, recv_pipe: 0
* About to connect() to econ.trib.al port 80 (#0)
*   Trying 23.21.170.236...
* Connected to econ.trib.al (23.21.170.236) port 80 (#0)
> GET /QKMTguP HTTP/1.1
> User-Agent: curl/7.30.0
> Host: econ.trib.al
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html;charset=utf-8
< Date: Fri, 04 Apr 2014 11:56:24 GMT
< Location: http://econ.st/1jF8V4a
* Server nginx/1.4.4 is not blacklisted
< Server: nginx/1.4.4
< Set-Cookie: tribal="nbo2cJBTQpi9R/Q0VJmy/g=="; expires=Fri, 06 Jan 2034 23:13:40 GMT; Path=/; Version=2
< Content-Length: 99
< Connection: keep-alive
<
This resource has permanently moved to <a href='http://econ.st/1jF8V4a'>http://econ.st/1jF8V4a</a>.* Connection #0 to host econ.trib.al left intact

3)

    $ curl -v http://econ.trib.al/wvPqtzG
* Adding handle: conn: 0x4a7e80
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x4a7e80) send_pipe: 1, recv_pipe: 0
* About to connect() to econ.trib.al port 80 (#0)
*   Trying 107.22.241.165...
* Connected to econ.trib.al (107.22.241.165) port 80 (#0)
> GET /wvPqtzG HTTP/1.1
> User-Agent: curl/7.30.0
> Host: econ.trib.al
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html;charset=utf-8
< Date: Fri, 04 Apr 2014 11:59:01 GMT
< Location: http://www.economist.com/blogs/graphicdetail/2014/04/daily-chart-1?fsrc=scn/fb/wl/dc/putinspipelines
* Server nginx/1.4.4 is not blacklisted
< Server: nginx/1.4.4
< Set-Cookie: tribal="6/+hHfDfTpaX5C0U/Kl8dA=="; expires=Fri, 06 Jan 2034 23:13:40 GMT; Path=/; Version=2
< Content-Length: 255
< Connection: keep-alive
<
This resource has permanently moved to <a href='http://www.economist.com/blogs/graphicdetail/2014/04/daily-chart-1?fsrc=scn/fb/wl/dc/putinspipelines'>http://www
.economist.com/blogs/graphicdetail/2014/04/daily-chart-1?fsrc=scn/fb/wl/dc/putinspipelines</a>.* Connection #0 to host econ.trib.al left intact

【讨论】:

    【解决方案2】:

    这只是一个缩短的网址。 econ.st 由经济学人报注册。您实际看到的更改只是对长 url 的重定向。

    例如,Google 就有非常相似的http://goo.gl

    您可以在wiki 页面上阅读更多相关信息。

    【讨论】:

      猜你喜欢
      • 2011-04-17
      • 2017-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多