Categories
Web

Self-hosted URL shortener

The need did arise to have my own URL shortener like bit.ly. I was even so simple to use bit.ly, but they do not offer “branded domain” on the free tier.

https://bitly.com/pages/pricing (2024-11-07)

So, I was researching using Claude AI to see what self-hosted options are available that best case can run on inexpensive shared hosting. My needs are minimal. I need redirects, a UI, a simple API, and statistics on how much this is used.

I stumbled across yourls, which is super simple, quick to install, and seems to offer everything I need.

YOURLS: Self-hosted redirect service based on PHP after initial install (2024-11-07)

Follow through to the statistics.

YOURLS: Action menu on mouse hover (2024-11-07)

The statistics offer both an amount of clicks and also one with a country map. This is very simple but exactly sufficient to my needs.

YOURLS: Traffic statistics for the link (2024-11-07)