My Own URI Shortener

After the ThunderBrigade website, this is another thing I really wanted and more or less needed. I used to have one, back when I had free hosting on Endora with the YOURLS shortener on it, and everything worked fine, but then I probably stopped using it and Endora deleted the site due to inactivity, including all the links. To this day I keep finding my old links go.sunamo.cz/ all over the place. What I like most about these shorteners are the statistics, so I simply had to have them in my own shortener too.

The shortener on the website is about 75% finished. What remains is mainly a page for managing all links and a page for editing a link, although I am not sure yet whether I will add that one. So what can my shortener do?

Shorten multiple addresses at once


Bulk shortened URI generator

Just enter any number of addresses, each on a new line. If a line cannot be converted, the error that occurred and the long address are printed for each such line, so you can easily see which addresses succeeded and which did not. Of course, a message is also shown with how many URIs were converted successfully and how many failed, with the reason and count for each.

Shortening from my desktop program


Desktop program for shortening URIs final

The only required field here is the original URI. Since only one URI is shortened at a time here, you can enter a comment for the address (for example, when you want to note where you posted the link but do not want an address like ?q=twittermujblog) and a custom code after ?q=. If any error occurs, the program shows it in the status bar; otherwise the short address appears on the right in the first row and is also copied to the clipboard.

Statistics


URI statistics page 1


URI statistics page 2


URI statistics page 3

As I mentioned in the introduction, the most important thing for me is the click statistics. That is why you can choose from these views: last 7 years, last 7 months, last 7 weeks and last 7 days.

Each of these views shows a line chart (for example, for the last 7 weeks, as of today, October 27, the last point will show traffic between October 21 and October 27, the one before it between October 14 and October 20, and so on – and the same goes for months, days and years), followed by 3D pie charts that tell you about the users who clicked the link, specifically about their browsers (either in general without distinguishing versions, or broken down by each version), the pages they came from, their OS and their language.

Addendum

The shortener can work with custom URIs up to 100 characters long after ?q=. If you do not want a custom URI, the program generates one for you – the shortest it can. It uses 62 characters for this (all uppercase and lowercase letters without diacritics + digits). A shortened URI looks like www.sunamo.cz/?q=b . I originally wanted it to be The website parked and threw the keys into the river. but that could cause a conflict sometime in the future if I wanted a directory that is already taken by the shortener, so I add those 3 characters ?q=, which hopefully will not kill anyone.

For now, my whole shortener supports only the protocols HTTP and HTTPS. The shortener also has its own API, so everything is ready for shortening and for meeting the needs of almost everyone. However, even if you sent a request to this API, it would not let you through, because it is not public yet. Still, sometime in the future this shortener may be open to everyone
Smiley face.

Categories

Leave a Reply