Decoding short URLs

If you're also fed up of URL shorteners, especially when trying to analyze a bunch of links, simply put the following command line in a file, make it executable, and it shall then decode your bit.ly / tinyurl URLs: curl -I $1 -s | grep Location | cut -d ' ' -f2, for instance:

Alexandre-Passants-MacBook-Pro:code alex$ decodr http://bit.ly/26KFpk
http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B8CY1-4TVY5PW-1...

Comments

You may use the URI debugger

Hey Alex,

Even simpler: You can use our URI debugger at:

http://linkeddata.informatik.hu-berlin.de/uridbg/

Copy the bit.ly, tinyurl or whatever URI in the URI field, submit, and you will immediately see the shortened URI in the server response. E.g.:

http://linkeddata.informatik.hu-berlin.de/uridbg/index.php?url=http://bi...

Olaf