A self-hosted URL shortener: Shlink - Keep control over all your shortened URLs, by serving them under your own domains, using this simple yet powerful tool. https://shlink.io/

I was very surprised to find this mature, full-featured URL shortener. It’s written in PHP and includes Geoblocking so your shortener isn’t abused.

A Docker quick-start guide: https://lnk.clifmo.com/ljk13

  • pulsewidth@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    Can I ask - why would anyone do this? Several URL shortening services of the past have shuttered and it has left the web littered with links to sites that can never be resolved (linkrot) - this to me just seems like a another surefire way to speedrun future deadlinks in forums etc. Why?

    • merthyr1831@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      I find link shorteners useful for sharing (ephemeral) links to others (especially if they’re massive) but for linking stuff on the web where you can hide it under an anchor tag is definitely a bad idea.

    • clifmo@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      How so? I am hosting and maintaining it for my own work and links. I have every incentive to keep it up. And if it goes down, only my links to my own content go down. And, the reason I did this was Bluesky has a character limit.