Dam Gd is an open source URL shortner. You can now have your own system that takes a long URL and makes it shorter. Additionally it has analytics and GeoIP built in. Built with PHP5/MySQL and requires mod_rewrite.
These details are provided for information only. No information here is legal advice and should not be used as such.