Back in 2009 I wrote a post about creating my own url shortener. I didn’t get very far, partly due to the challenge of how to create the short url codes, and partly due to my development philosophy of having an idea, musing about it, and never getting anywhere with it. Though I did install some code Ben Charlton has written and set it up as u.nostuff.org.
Part of the drive to do this was a bizarre feeling of guilt when using ‘short urls’ from the main shortener services. Each short url I created would mean we – as a userbase – were one step closer to the URLs being one digit longer (i.e. when that service ran out of free letter/number combinations with the current number of digits). Short urls were a scarce good. Did I really need this short URL? Worse, useful services such as twitterfeed use a short url each time they add something to twitter, even if most of those links would never be followed.
However there should be no need for all of us to be using the same small set of url shorteners, if we used our own, or one for a particular group of people, or for a particular service, then we would be free to use them as we pleased. What we (internet users at large, and especially twitter users) needed was lots of URL shorteners, each able to produce short codes.
Back in April this year I came across YOURLS, an open source simple URL shortener you can install on to your site [main website | blog with new releases | Google code]. This fitted the bill exactly. Installing it was easy on my dreamhost account.
Now I just needed the short domain name. I came up with a few catchy/clever domain names, but quickly found that two digit domains were pricey or just not allowed for purchasing. especially those such as .im, ly etc.
It would have to be three digits, and if I couldn’t get or afford ‘catchy’ why not just go for something completely random? After all I just needed to remember it.
I also decided that I would buy from my existing domain name provider, rather than signing up with another organisation, especailly some of the dodgy looking ones providing sole access to unusual country top level domain names.. I also wanted to use a country that was stable and unlikely to be awkward with renewing the domain or changing the rules (sn.im didn’t work for a while while the owners argued with the Isle of Man registrar). Using 123reg, at the time the cheapest three digit domains were to be found (amongst a couple of others) in Belgium, .be. The only concern being as the two halves of Belgium seem to drift further apart from each other, there is even talk of one day Belgium splitting up (and I bet they wouldn’t even think if my domain name during the split, well I really).
So I ended up with xd5.be. No good reason. I used a combination with an x as I figured fewer organisations will have an acronym with an x in it, the number in the name may help in that respect as well.
The solution works well, with the usual browser bookmarklet (I’ve always shortened urls before pasting them to a twitter client). One thing I did find was that I was reluctant to use it at first as I was aware I was creating the shortest urls available on this domain (i.e. one digit code) and felt the need to preserve them for stuff that was important. Now I am on to two digits I am more care free! YOURLS allows you to choose between just using lowercase or including uppercase digits as well, I went for the former while the latter will obviously provide far more combinations of characters. I could also install additional copies of the software on to subdomains, e.g. a.xd5.be b.xd5.be, these are still seven characters in total, four less than tinyurl.com. drop me a line if you would like one of these.
In all, I think it is worth doing, it keeps you in control of your links and the software you are using.
One response to “Personal URL shortener”
Hello,
I could also install additional copies of the software on to subdomains, e.g. a.xd5.be b.xd5.be, these are still seven characters in total, four less than tinyurl.com. drop me a line if you would like one of these.
Could i get one?