Free Self-Hosted Tinyurl Service
Digg this story ?Earlier this week wrote a small PHP application to provide me with a self-hosted service like tinyurl with the addition of a traffic count. It is pretty rudimentary but allows me to have my own url-redirection without the complexity of HTML files with a META refresh.
The program I did has a simple interface that shows all my links and the current hit count for each one. There’s an add URL field that allows me to quickly add a new link. It’s all driven by a MySQL database.
With it I’m able to create links such as http://www.halotis.com/go/rss that quickly re-direct to the appropriate site.
NOTICE:
Nov 06, 2007 - Made some updates to the code to use smaller hashes, and fix some bugs
Nov 18, 2007 - Allow user to optionally specify the tag for more friendly urls.
Nov 30, 2007 - Bunch of new features. Added login security, updated mootools library, added version check notification, and cleaned up the settings code to make it easier to install and setup.
Download it here
Click Here to subscribe to my RSS Feed





Hi, thanks for the code, I will have a look at it and I might install it once I moved to a fresh WordPress install.
[...] Some more advanced things you might consider is to split test different ads or different products. That’s possible with something like OpenAds or just do some click counting with my url re-direction code. [...]
You can convert many long URLs into one small url and then can share it on IMs, mail or in mobile SMS easily.