News for hackers. Stuff that matters.
Re:Show HN: An open-source alternative to Bitly by martin-adams on Monday July 01, 2024 @05:36AM (#40844078)
Or should this be more specific in that you shouldn't shorten URLs using the provider's domain name, but bring your own domain. So if the provider goes away, you can in some way migrate the links.
Re:Show HN: An open-source alternative to Bitly by lbill on Monday July 01, 2024 @05:46AM (#40844136)
I agree!

That's why I set up my own thing. I don't care about analytics at all, so I just wrote a simple build system doto generate some very basic HTML redirects.

It isn't perfect but it's very cheap to run!

https://github.com/lucienbill/lucien.run/

Re:Show HN: An open-source alternative to Bitly by notpushkin on Monday July 01, 2024 @06:01AM (#40844226)
And if you use Netlify, you can just create a _redirects file like this:

  / https://example.com
  /cv https://example.net/cv.pdf
  /git https://github.com/octocat
Works good for me on ale.sh so far!
Re:Show HN: An open-source alternative to Bitly by ccbikai on Monday July 01, 2024 @06:13AM (#40844294)
Yes, having control of your data is safer.

Even if the supplier disappears, it is possible to quickly switch to another platform