this post was submitted on 09 Mar 2025
69 points (94.8% liked)

Selfhosted

43722 readers
425 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] pulsewidth@lemmy.world 4 points 5 hours ago* (last edited 1 hour ago) (2 children)

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?

Edit - I have misunderstood the assignment.

This is targeted at self-hosted/personal-domain stuff only, not general internet site URL shortening/redirection.

[–] merthyr1831@lemmy.ml 3 points 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.dev 2 points 3 hours ago (1 children)

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.

[–] pulsewidth@lemmy.world 2 points 1 hour ago (1 children)

Ah that is probably my bad then, I read it as being able to redirect arbitrary URLs, hence the need for geoblock and abuse protections - if it's only your own self-hosted/personal domains then yeah that absolutely makes sense.

[–] clifmo@programming.dev 1 points 2 minutes ago

I think the concern re:geoblock is that the REST API is just out there, unauthenticated. I need to shut those off or limit them to the internal network with Traefik, but I still need the short links to resolve. I'm not sure if that API is used for that, or what. I haven't explored the code yet.