decrypting shortened URLs

From: John Aldrich 
------------------------------------------------------
Anyone know of a good tool to un-shorten a shortened URL? I'm starting  
to see more and more spam that has shortened URLs in it (mostly  
twitter links) but in case someone gets smart and starts using  
something like makeashorterlink.com, I'd like to be able to decipher  
that URL as well and complain to the REAL web host.

=============================================================== From: wes ------------------------------------------------------ Internet Explorer is pretty good at it -wes

=============================================================== From: Wil Wade ------------------------------------------------------ Firefox Plugin: https://addons.mozilla.org/en-us/firefox/addon/unshortenit/ Chrome Plugin: https://chrome.google.com/webstore/detail/url-unshortener/hciiopljaekhmopgaghflgfnhhbbaclm?hl=en-US

=============================================================== From: Dan Lyke ------------------------------------------------------ Some of this depends on what redirect strategy the URL shortener uses, but for t.co (Twitter) links, if you have Perl and the LWP Perl library installed, you can do something like: HEAD -S http://t.co/gSfaYVNPp5 | grep HEAD to show the redirect chain (in this case a 301 to bit.ly which sends a 301 to go.sendgrid.com which returns a 200 OK)

=============================================================== From: Wil Wade ------------------------------------------------------ What kid of tool do you want? CLI? Web? CLI you can roll your own with Curl quite quickly. Web: http://www.unshorten.com/

=============================================================== From: John Aldrich ------------------------------------------------------ Quoting Wil Wade : Thanks. I figured someone had done this before. :) Now I know the tool to use to report shortened spamvertised URLs. :)

=============================================================== From: John Aldrich ------------------------------------------------------ Quoting Dan Lyke : Wow! That is a lot of work to obfuscate a URL, but it wouldn't surprise me that a spammer would do that. :) I'm looking for something I can use on my Winders box at work. They're pretty paranoid about what sites they let us go to... no Facebook or other time-wasting sites and no car sites, either. :(

=============================================================== From: John Aldrich ------------------------------------------------------ Quoting Wil Wade : Wow... thanks, Will. That's a great set of plugins!