Workaround for blocked URL shortening services?

I come across URLs from bit.ly, tinyurl, is.gd, etc. all the time. Unfortunately, these services are blocked by my employer. Is there a tool that unravels these URLs on my machine via some other service so I can get around the block?

I came across a bookmarklet to do this for TinyURLs once, but it'd be nice for something more comprehensive.

4

2 Answers

Two ways:

3

If you can run a shell, grep, and curl, you could expand them at the command line and copy the url manually with an alias like:

expandurl() { curl -sIL "$1" | grep -i '^Location: ' }

(The curl arguments mean: silent, only download the html headers, and follow redirects until they stop redirecting.)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like