Shorten, personalize, and share fully branded short URLs with continuous integration on Cloudflare

Shorten, personalize, and share fully branded short URLs with continuous integration on Cloudflare

You’ve been there too, a fully branded short URLs is useful but your low volume does not justify a commercial solution. Furthermore, links generated by a free solution will eventually expire and they're not privacy friendly.

This kind of solution is known as TinyURL, tiny url, shorten that long URL, URL Shortening Service, goo.gl, bit.ly, or short.io.

My objective is to work at the command line and automate it. So feel free to fork, and customize. Go check my GitHub repository ??.

How does it work?

  1. Register a tiny internet domain name with your preferred vendor
  2. Add the domain to Cloudflare DNS
  3. Store your URLs redirection list in a private GitHub repository
  4. Create a project underneath Cloudflare Workers & PagesConnect the repositoryConfigure your deployment and build setup:Framework preset: noneBuild command: noneBuild output directory: /cfPageSetup a custom domain for your page project
  5. Configure the DNS entry via Cloudflare DNS

Its bullet proof

As long as you secure your Github and Cloudflare accounts with robust authentication, there is not much that can go wrong with such simple solution. It use the products as designed, there is no hack involved.

Francis P.

All things SRE, Security and IT at Sanity

1 年

Alternative to consider: Tailscale + https://github.com/tailscale/golink does the trick for most, but that's internally visible stuff...

Benoit H. Dicaire ????

Information Security & Privacy Trusted Advisor | Keynote Speaker

1 年

Félix Léger : Ping me and I’ll do a 4-minute demo with my private git repository

Félix Léger

Currently between roles

1 年

Great timing, especially considering that starting today, the free accounts at bit.ly have been massively nerfed (https://bitly.com/pages/free-plan-refresh-faqs). I'll give this a shot, thank you for sharing!

要查看或添加评论,请登录

社区洞察

其他会员也浏览了