[Chugalug] decrypting shortened URLs

Dan Lyke danlyke at flutterby.com
Thu Oct 17 17:56:11 UTC 2013

On Thu, Oct 17, 2013 at 6:16 AM, John Aldrich <jmaldrich at yahoo.com> wrote:
> 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)

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)

More information about the Chugalug mailing list