TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The URL shortener situation is out of control

166 pointsby yonasbalmost 11 years ago

21 comments

mmahemoffalmost 11 years ago
That&#x27;s really unfortunate. And it&#x27;s not just performance, it really messes around with OS-level URL handling protocols like Android intents (and possibly FB&#x27;s app links and iOS&#x27;s new Extensibility).<p>I recently found this happening with Twitter&#x27;s Android app. The user sees a link to player.fm and thinks it will open the native Player FM app if they have it installed, since it&#x27;s registered to handle that URL pattern. But instead, the OS offers web browsers and Twitter as ways to open the link, because it&#x27;s not really a player.fm link as presented to the user, but a t.co link. If the user then chooses a browser, the browser immediately redirects to the correct URL, which then pulls up the intents menu again.<p>7 redirects could potentially be 7 popup menus for the user to navigate through.<p>The OS could pre-emptively follow redirects, but that would of course introduce considerable latency since normally the menu is presented without any call being made at all. Maybe the best solution for OSs is to present the menu immediately but still make the call in the background, so the menu could be updated if a redirect happens.<p>&quot;I don&#x27;t see any work happening in HTTP 2.0 to change it.&quot;<p>Probably the best HTML standard for dealing with it is the &quot;ping&quot; attribute which allows a way for servers to be notified of a click without actually redirecting. However, that&#x27;s HTML and not HTTP, and these days, apps are more popular HTTP clients than browsers, and apps don&#x27;t manually bother to implement things like that.<p>So there <i>are</i> probably things that could be done with the standard. Perhaps using some distributed lookup table to ensure at most 1 redirect (by caching the redirect sequence and returning it with the first request). That does ignore any personalisation that goes on, but generally these should be permanent redirects without personalisation anyway.
评论 #7837194 未加载
评论 #7837540 未加载
评论 #7837762 未加载
joshualmost 11 years ago
Pretty sure I called this one a few years ago.<p><a href="http://joshua.schachter.org/2009/04/on-url-shorteners" rel="nofollow">http:&#x2F;&#x2F;joshua.schachter.org&#x2F;2009&#x2F;04&#x2F;on-url-shorteners</a>
评论 #7837052 未加载
nostromoalmost 11 years ago
We could put a stop to marketing redirects tomorrow if we didn&#x27;t allow redirects to set cookies.<p>(Or perhaps only allowed a cookie if the redirect was served by the same domain as the target domain.)
评论 #7836920 未加载
评论 #7837279 未加载
评论 #7837533 未加载
评论 #7837525 未加载
评论 #7836933 未加载
评论 #7837230 未加载
stormbrewalmost 11 years ago
I think the most practical solution to this, requiring only a change in practice and not in standard, would be for link shorteners to start doing HEAD requests on the urls they shorten and unwrap it to make their shortened link canonically correct if it results in a permanent redirect.<p>Yeah, there are things that might have some problems with this, but they&#x27;re things that are probably somewhat abusive to the 301 status code to begin with.
评论 #7837475 未加载
baddoxalmost 11 years ago
&gt; Redirects are being abused and I don&#x27;t see any work happening in HTTP 2.0 to change it.<p>I agree that this is an unfortunate pattern, but what exactly could the HTTP spec do to change it? The only thing I can think of is limiting the number of chained redirects, although I don&#x27;t see browsers implementing that if longer chains are even remotely common.
评论 #7836855 未加载
评论 #7836851 未加载
评论 #7836849 未加载
评论 #7836908 未加载
lyndonhalmost 11 years ago
People are using shorteners on shortened links, this is the problem.<p>The most obvious one is Twitter, always using it&#x27;s own service regardless.
评论 #7836867 未加载
terracattaalmost 11 years ago
This is classic &quot;Tragedy of the commons&quot; behavior where each individual group with a link shortener is benefited by encouraging and enforcing its usage (ability to kill malicious links easily, user tracking, etc)<p>I&#x27;m not sure if this can be resolved until users are educated sufficiently on the long-term adverse effects of link shortening services (link rot, privacy concerns, slow&#x2F;broken redirects, etc).<p>For change to happen the demand for direct links (generated explicitly by things like this blog posts, or implicitly by higher bounce rates due to long loading times) will need to be enough to outweigh the benefits to organizations that are building them.<p>Edit:<p>Even if there is evidence that shows this, why should _I_ be the one to give up my link shortener service when it will have no significant improvement to the overall problem which involves tens or hundreds of these services?
评论 #7837447 未加载
userbinatoralmost 11 years ago
This is propagated by people not really understanding URLs and blindly reposting links that have already been wrapped in a URL shortener through services that wrap them in another one. Whenever I repost links, I repost only the URL of the final page, stripping off anything unnecessary. Sadly, the trend of browsers hiding URLs or pieces of them is not helping the situation either.<p>I don&#x27;t think this can be solved technologically - HTTP redirects are not difficult to detect but a lot of these shorteners (and becoming increasingly more common) use Javascript and&#x2F;or meta tags to accomplish redirection. The solution is better educated users that don&#x27;t create chains of shortened URLs.
评论 #7836913 未加载
评论 #7837055 未加载
cratermoonalmost 11 years ago
The user experience on mobile with multiple url-shortener redirects is beyond annoying. Every new HTTP connection opened on over a marginal cell or wifi connection can stall or fail, even when the actual destination site is up and reachable.
whalesaladalmost 11 years ago
Is the ridiculously long ThisURLShortenerSituationIsOfficiallyOutOfControl.aspx url part of the rant against short urls?
评论 #7837069 未加载
评论 #7837670 未加载
jpatokalalmost 11 years ago
I&#x27;m impressed by his proposed solution: <a href="http://uniformresourcelocatorelongator.com/" rel="nofollow">http:&#x2F;&#x2F;uniformresourcelocatorelongator.com&#x2F;</a>
shawnzalmost 11 years ago
&gt; Every redirect is a one more point of failure, one more domain that can rot, one more server that can go down, one more layer between me and the content.<p>These are all good reasons, but are there any real users who are actually being affected by these issues? If it is just a theoretical concern, then I don&#x27;t think it is reasonable to call the situation &quot;officially out of control&quot;.
评论 #7836953 未加载
评论 #7837068 未加载
RazorCrusadealmost 11 years ago
I&#x27;ve lived in the Philippines for awhile, and the big telcom here, PLDT, has <i>terrible</i> DNS. t.co links are the most obvious point of contention, where they just won&#x27;t resolve 90% of the time. It&#x27;s incredibly obnoxious, especially on a mobile device where DNS settings aren&#x27;t (easily) exposed.
SkyMarshalalmost 11 years ago
A little off topic, but I seem to recall seeing, probably some years ago, a post on HN about someone a reversable url shortening algorithm that could convert from the shortened url back to the original. Can&#x27;t find it now, anyone recall this, or did I dream it?
评论 #7838403 未加载
fiatjafalmost 11 years ago
In a few years, all these services will be gone and all the links broken.
评论 #7837609 未加载
Lifescapealmost 11 years ago
I couldn&#x27;t find anything that would output something similar to the redirects image shown in this post, so wrote a small script in node to do that. It looks like this: <a href="http://cl.ly/image/3T3e462G1C3d" rel="nofollow">http:&#x2F;&#x2F;cl.ly&#x2F;image&#x2F;3T3e462G1C3d</a><p>Here&#x27;s the script: <a href="https://gist.github.com/akenn/7ca7e99a51c3a4abc049" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;akenn&#x2F;7ca7e99a51c3a4abc049</a><p>Speaking of, what software did this guy use? Is there a bash script that&#x27;s better than what I wrote?
评论 #7837012 未加载
评论 #7837234 未加载
voltagex_almost 11 years ago
<a href="http://urlte.am/" rel="nofollow">http:&#x2F;&#x2F;urlte.am&#x2F;</a> was a URL shortener rescue project but it appears to have stalled.
Istofalmost 11 years ago
8 redirects is pretty bad but it is not much worst then loading files from 15 different domains (which is very popular nowadays)
评论 #7837606 未加载
rhizomealmost 11 years ago
Closely related, e.g. Photobucket: <a href="http://imgur.com/xlWAUdF" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;xlWAUdF</a>
评论 #7837834 未加载
jhrobertalmost 11 years ago
shorteners should be called that way only when the result is actually shorter.<p>Otherwise &quot;interceptors&#x2F;tracers&quot; seems a better name.
a3nalmost 11 years ago
&gt; What do you think?<p>I think URL un-shortening should be done in the browser, on URLs that were shortened according to a standard hashing method, so your browser can tell you where the URL will go.<p>Shortening sevices are ridiculous and dangerous.
评论 #7837262 未加载
评论 #7837441 未加载
评论 #7839984 未加载