Mike Migurski has coded up the simplest possible self hosted URL shortener, and published it on github
One of the small tools that I think would make rev=canonical even more useful is a rapid, brainless way to create short URLs for any domain. It’s possible, in a brief PHP script that only knows how to speak HTTP, to:
- Redirect from short URLs to long URLs
- Respond with a short URL for a given long URL
- Add a new short URL for a given long URL