Settings

Theme

Show HN: hink - Link Shortener for Hackers

github.com

1 points by ccbikai 4 months ago · 0 comments · 1 min read

Reader

The principle is to use the hash of a Git empty commit as the unique identifier for a short link, storing the original long link in the commit message. When the short link is accessed, the system retrieves the long link by requesting the corresponding .patch file from GitHub and performs a redirect. Combined with the analytics dashboard of a WAF (Web Application Firewall), this creates a link shortening service with access statistics.

Currently, this solution has been tested and works on the following platforms:

Cloudflare Workers/Snippets + Cloudflare WAF (Pro) Tencent EdgeOne (Free) Alibaba Cloud ESA (Free)

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection