当我们点击它们时,这些网址会被更改

时间:2014-04-04 11:50:01

标签: facebook url web

在Facebook上,我看到网页,帖子网址就像这样的

http://econ.st/1dQAfN2

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

请问第一个链接是什么?为什么点击它会改变第二个链接? 它不是redictring 我想。

我在Facebook和社交网络上看到了很多这些链接。

由于

2 个答案:

答案 0 :(得分:0)

页面以

响应

< HTTP / 1.1 301已移动

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

答案 1 :(得分:0)

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

例如,谷歌有一些非常相似的http://goo.gl

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

相关问题