this post was submitted on 17 Sep 2025
29 points (100.0% liked)

Selfhosted

51962 readers
1133 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
 

Checking for this, i see that the only one was the old unshort.link, but the repo was discontinued

top 10 comments
sorted by: hot top controversial new old
[–] antsu@discuss.tchncs.de 18 points 2 weeks ago (2 children)

I understand this is not exactly what you're asking for, but if you have access to a terminal, you can "unshorten" a link with:

curl --head -L https://example.com/short | grep: location

[–] jherazob@fedia.io 10 points 2 weeks ago (1 children)

It is not enough for the increasingly common share.google links for example, and i bet there's more like this

[–] jherazob@fedia.io 2 points 2 weeks ago

Received a share.google link and checked what it did: It redirects to something with URL format "https://www.google.com/share.google?q=SOME_CODE", which is a normal page that IS the target as far as curl and such tools are concerned but redirects on the browser probably using Javascript, so it will not redirect it with our normal tools. It will need custom code or Javascript execution. So, they knew what they were doing and used their powers for evil, as they usually do now.

[–] DasFaultier@sh.itjust.works 5 points 2 weeks ago

Very much this.

[–] solrize@lemmy.ml 14 points 2 weeks ago

It's a little complicated. Sometimes the curl command further up works, but sometimes the redirection is done in an html meta tag or even with javascript. I have a messy python script that has a bunch of site specific code to bypass redirects and clean up tracking links. I can't post it in its present condition (it has some private info embedded) but I've been wanting to clean it up and post it sometime.

[–] EndOfLine@lemmy.world 5 points 2 weeks ago (1 children)

I've not used it, but your question got me wondering so I searched and found the following site which tries to navigate various redirect methods to find the final destination. I'd be curious to know how well it works.

https://www.redirect-checker.org/

[–] jherazob@fedia.io 5 points 2 weeks ago (1 children)

I was hoping for a self-hosted resource, not a remote API, since this is the Selfhosted community

[–] EndOfLine@lemmy.world 5 points 2 weeks ago

Whoops, my mistake. I did not check where this was posted. Sorry about that.

[–] jcolag@lemmy.sdf.org 3 points 2 weeks ago

I developed this script for creating permanent/static archives of social media exports, so it's not a full solution - not a web service, expects file inputs, uses a probably incomplete list of shorteners to avoid pulling real pages - but it along with the shorteners.txt file in the same repository, iterating to find a domain not on the list, might at least inspire a solution, if it's not good for your specific cases.

[–] v3ritas@infosec.pub 2 points 2 weeks ago

I’m sure there are better alternatives (going to look at some of the other suggestions here), but I usually just drop the link into https://www.expandurl.net/