如何找到链接到特定长 URL 的缩短 URL?
这与通常的扩展短 URL 问题相反。
对于给定的长 URL,如何找到链接到它的短 URL?
如果这需要通过缩短器的 API,那么支持此类查询的指针将不胜感激。
This is the reverse of the usual expanding short URLs question.
For a given Long URL, how can I find which short URLs link to it?
If this needs to go through the APIs of the shorteners, apointers ot the ones which support such a query would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简单答案:将 URL 提交给您感兴趣的每个 URL 缩短程序。
Simple answer: submit the URL to each URL shortener that you're interested in.
我认为没有直接的方法可以做到这一点。 例如,明天我可以编写自己的 URL 缩短程序 - 由于短 URL-> 长 URL 映射是私有的,因此在我的服务器上,我需要为您提供一种访问该信息的方法。
因此,如果您控制了网站,您可能能够通过查看服务器日志来收集信息 - 特别是 REFERER 标头。
我知道对于 bit.ly,您可以很容易地缩短那里的 URL,这将为您提供相应的短 URL。 除非有人注册了帐户,否则任何使用 bit.ly 的人都会使用相同的短网址。
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.