Twitter's mandatory link shortener, t.co, was down
thenextweb.com
thenextweb.com
1. Analytics and monitoring. (Google's results page uses the same technique.)
2. Disabling malicious and unwanted links.* User browses on Twitter, clicks link in tweet pointing to t.co, is redirected off to the page where they wanted to go.
* User searches on Google, clicks link in search result pointing to google.com, is redirected off to the page where they wanted to go.
Admittedly it only happens with half of the search results of the first page (I think; it seems to vary), but it's very much the same technique.
1. That Twitter uses a "short link" where Google uses some kind of (I trust) token-secured "open redirect"
or
2. That Google uses a {Javascript, 301, ...} redirect where Twitter uses a {Javascript, 301, ...} redirect.
Depending on what User-agent I sent, I got Twitter to variously return a Javascript or 301 Moved Permanently response. I could only get Google to return a Javascript response to cURL, but I did not try hard, and I would not rule out Google employing different redirect methods, particularly on their search results page. Google is notorious for falling back to different methods depending on the particulars of the client. See:
http://www.stevesouders.com/blog/2010/07/12/velocity-forcing...
So they at least both use the Javascript method. In any event, if you mod out the content of the hyperlink after the domain, and mod out the content of the text based HTTP response (!), which is fair here, then the methods are all equivalent, and all generate the same server diagrams.
In this case, there is not much difference between the browser parsing plaintext in HTTP headers that tells it to go to a different site and the browser parsing plaintext in an HTTP body that tells it to go to a different site once executed in a Javascript engine.
Can't they do something where the HREF is left intact, but an additional onClick is added to track clicks?
Since Facebook and many other services do this on their mobile apps by default, I am surprised I don't hear more complaints about it. Twice through the cell tower is too long.
My last straw using Google Chrome, was when I noticed that the browsers "could not load webpage" (e.g. When you don't have an Internet connection) redirects through Google when I click the "try reloading the page". I dunno if they still do it, but that was crossing the line for me.
How is this any different from the countless times twitter.com was down?
It's a centralized service, things happen.
Yes.
> How is this any different from the countless times twitter.com was down?
This is different because if I read a tweet cached in my client or archived somewhere I can't reach an external resource because a middleman is down.
> It's a centralized service, things happen.
The WWW is decentralized by design. Link shorteners, and reliance on them, make it obnoxiously centralized. The tweet itself should contain the full link and shorten it only on display [0] [1].
https://dev.twitter.com/docs/tweet-entities
The tweet response contains the full link.
So, why is (apparently) everyone — including Twitter — sending us through t.co?
Example here[0] where you can see Twitter displays "mlkshk.com/r/K29L.jpeg" in the tweet, downright lies to you when hovering over it with "http://mlkshk.com/r/K29L.jpeg while the real href is http://t.co/fqxnG84t.
So, WWW broken.
(By the way, I have to check if Twitter forbids bypassing t.co shortened URLs in third party clients).
EDIT: As I supposed, the display requirements say that the clients should send the user through t.co https://dev.twitter.com/terms/display-requirements
Genius.
Funny recommendation there:
"If you are an authoritative administrator of t.co and you have solved the abuse issues you can write to us at dbl-mmxi@spamhaus.org from either abuse@t.co or postmaster@t.co and inform us of the actions you have taken to clean up the current spammer URLs. Please also inform us of any steps you have taken to prevent future abuse of your shortener/redirector. We will review your request and, at our discretion, remove the listing or respond to your request."
:)
Twitter can kill Flipboard and other tons of "discovery engines" with one flip. I think Twitter has figured out this stuff couple of years back and that's what they are doing. A real-time discovery network. It is more powerful than any of the existing old mediums, be it newspapers or TV networks.
EDIT: It also makes extremely powerful advertising medium.
It could be regularly down for hours at a time with little to no effect.
They'll just come back later.
i guess its easy to write up stuff :))