clx

EN
Sign inDashboard

A URL shortener on your own domain

Short links on your own domains, a host for each site such as k7q.example.com, served by a worker in your Cloudflare account — with a QR code for every link, rules by country and device, and click tracking.

Start free

  1. 1Connect Cloudflare
  2. 2Choose a link host
  3. 3Make a link

An example link.

Your domain, not ours

Each site can have a link host of its own — a random three-character name under its address, such as k7q.example.com — so the links of one site share nothing with another’s. clx makes the host itself: Cloudflare creates its DNS record and certificate, and never over a record you already have. A link answers with a plain 302 redirect and no caching, so every click reaches the worker; anything else on the host is a bare 404.

A QR code for every link

Download it as SVG from the app or the API. A scan is reported as its own source, and the code never changes — change the target or the rules, and printed codes keep working.

Rules by country, device and bot

Up to ten rules a link: send Germany to the German page, phones to the app, and link previews or search engines to a page of their own. The first rule that matches wins; otherwise the main target.

Link tracking

Clicks and visitors of every link, by day, with sources, countries, devices, browsers and systems — and for a link with rules, which rule took which clicks. Bots are redirected too, but counted apart.

The visit counter on the same worker →clx vs Bitly →A free QR code generator →How it works →

Which rule took which clicks

With rules, one link sends people different ways. The report draws it in one picture: from every source to the address each click was sent to, so you see what each rule actually does.

Where the clicks wentQR code → Main address: 80 · 2%; QR code → Rule 1 (DE, AT): 820 · 24%; QR code → Rule 2 (phone): 80 · 2%; Direct → Main address: 260 · 8%; Direct → Rule 1 (DE, AT): 300 · 9%; Direct → Rule 2 (phone): 500 · 15%; news.example.net → Main address: 480 · 14%; news.example.net → Rule 1 (DE, AT): 150 · 4%; news.example.net → Rule 2 (phone): 210 · 6%; blog.example.org → Main address: 100 · 3%; blog.example.org → Rule 1 (DE, AT): 100 · 3%; blog.example.org → Rule 2 (phone): 360 · 10%QR code → Main address: 80 · 2%QR code → Rule 1 (DE, AT): 820 · 24%QR code → Rule 2 (phone): 80 · 2%Direct → Main address: 260 · 8%Direct → Rule 1 (DE, AT): 300 · 9%Direct → Rule 2 (phone): 500 · 15%news.example.net → Main address: 480 · 14%news.example.net → Rule 1 (DE, AT): 150 · 4%news.example.net → Rule 2 (phone): 210 · 6%blog.example.org → Main address: 100 · 3%blog.example.org → Rule 1 (DE, AT): 100 · 3%blog.example.org → Rule 2 (phone): 360 · 10%Direct: 1,060 · 31%AQR code: 980 · 28%Bnews.example.net: 840 · 24%Cblog.example.org: 560 · 16%DRule 1 (DE, AT): 1,370 · 40%1Rule 2 (phone): 1,150 · 33%2Main address: 920 · 27%3Direct: 1,060 · 31%A Direct1,060 · 31%QR code: 980 · 28%B QR code980 · 28%news.example.net: 840 · 24%C news.example.net840 · 24%blog.example.org: 560 · 16%D blog.example.org560 · 16%Rule 1 (DE, AT): 1,370 · 40%1 Rule 1 (DE, AT)1,370 · 40%Rule 2 (phone): 1,150 · 33%2 Rule 2 (phone)1,150 · 33%Main address: 920 · 27%3 Main address920 · 27%
Where the clicks wentQR code → Main address: 80 · 2%; QR code → Rule 1 (DE, AT): 820 · 24%; QR code → Rule 2 (phone): 80 · 2%; Direct → Main address: 260 · 8%; Direct → Rule 1 (DE, AT): 300 · 9%; Direct → Rule 2 (phone): 500 · 15%; news.example.net → Main address: 480 · 14%; news.example.net → Rule 1 (DE, AT): 150 · 4%; news.example.net → Rule 2 (phone): 210 · 6%; blog.example.org → Main address: 100 · 3%; blog.example.org → Rule 1 (DE, AT): 100 · 3%; blog.example.org → Rule 2 (phone): 360 · 10%QR code → Main address: 80 · 2%QR code → Rule 1 (DE, AT): 820 · 24%QR code → Rule 2 (phone): 80 · 2%Direct → Main address: 260 · 8%Direct → Rule 1 (DE, AT): 300 · 9%Direct → Rule 2 (phone): 500 · 15%news.example.net → Main address: 480 · 14%news.example.net → Rule 1 (DE, AT): 150 · 4%news.example.net → Rule 2 (phone): 210 · 6%blog.example.org → Main address: 100 · 3%blog.example.org → Rule 1 (DE, AT): 100 · 3%blog.example.org → Rule 2 (phone): 360 · 10%Direct: 1,060 · 31%AQR code: 980 · 28%Bnews.example.net: 840 · 24%Cblog.example.org: 560 · 16%DRule 1 (DE, AT): 1,370 · 40%1Rule 2 (phone): 1,150 · 33%2Main address: 920 · 27%3Direct: 1,060 · 31%A Direct1,060 · 31%QR code: 980 · 28%B QR code980 · 28%news.example.net: 840 · 24%C news.example.net840 · 24%blog.example.org: 560 · 16%D blog.example.org560 · 16%Rule 1 (DE, AT): 1,370 · 40%1 Rule 1 (DE, AT)1,370 · 40%Rule 2 (phone): 1,150 · 33%2 Rule 2 (phone)1,150 · 33%Main address: 920 · 27%3 Main address920 · 27%

The example link’s report, 30 days: its printed QR code went out in Germany, and its blog is read on phones.

A link is one API call

Make links in the app, or let your site generator or agent make them:

curl https://clx.cx/v1/links \
  -H "Authorization: Bearer clx_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"link_host_id":"…","url":"https://example.com/spring-sale","code":"spring",
       "rules":[{"countries":["DE","AT"],"url":"https://example.de/fruehling"}]}'

# → 201 { "link": { "short_url": "https://k7q.example.com/spring", … } }

Questions

Can I use clx without a domain of my own?

No. Links live on your host in your Cloudflare account: clx.cx carries none of your traffic.

What happens to a printed QR code if the page moves?

Change the link’s target: the code and the QR code stay the same.

How many links can I have?

200 on the free plan, 10,000 on Pro.

How is a link chosen by country?

By the country Cloudflare sees the click from; a device is a phone or a computer.

All questions →

Shorten links on your own domain

Free plan, no card. Open source under AGPL-3.0.

Start free