2

这与通常的扩展短 URL 问题相反。

对于给定的长 URL,我如何找到链接到它的短 URL?

如果这需要通过缩短器的 API,那么支持此类查询的指针将不胜感激。

4

2 回答 2

4

简单的答案:将 URL 提交给您感兴趣的每个 URL 缩短器。

  • 如果 URL 在您收到与其他提交您的 URL 的人返回的相同的短 URL 之前已被缩短。
  • 否则,您现在有一个新的短 URL!这真的没有坏处。
于 2009-06-21T00:49:38.050 回答
1

I do not think that there is a direct way to do this. For example, I could write my own URL shortener tomorrow - and since the shortURL->longURL mapping is private, on my server, I would need to provide you with a way to access that information.

So if you have control of the website, you might be able to glean information from looking at the server logs - the REFERER header, in specific.

I know that for bit.ly, it would be easy for you to shorten the URL there, and that would give you its corresponding shortURL. This same short url is used for anyone who uses bit.ly, unless someone has registered an account.

于 2009-06-20T23:43:55.517 回答