Branded Short Links on Your Own Domain

Run OpenShort.Link seamlessly alongside your existing website using Cloudflare's serverless infrastructure, without needing a separate server.

domain

Full Brand Control

Maintain brand consistency with custom short links that feature your domain.

verified_user

Enhanced Trust

Branded links are more trustworthy and less likely to be marked as spam.

cloud

Serverless on Cloudflare

Leverage Cloudflare's global network for high performance and reliability.

Prerequisites

Before you begin, ensure you have the following:

  • check_circle A domain managed by Cloudflare.
  • check_circle Basic understanding of DNS and how Cloudflare works.
  • check_circle A GitHub account to fork the project repository.

Integration Examples

Choose the setup that best fits your existing website configuration.

Setup on link.yourdomain.com

This is the simplest method. Configure your DNS to point the subdomain to your Cloudflare Worker.

# In your Cloudflare DNS settings:
# Add a CNAME record for your subdomain

CNAME   link   your-worker-name.your-account.workers.dev

Setup on yourdomain.com/l/*

Use a subpath to serve links from your main domain. This requires configuring a route in your Cloudflare dashboard.

# In your wrangler.toml file
# This tells the worker to only respond to paths starting with /l/

[triggers]
routes = ["yourdomain.com/l/*"]

WordPress Integration

To avoid conflicts with WordPress permalinks, use the subpath method and ensure Cloudflare routes requests to /l/* to your worker *before* they hit your origin server.

No special WordPress configuration is needed if Cloudflare is set up correctly. The worker intercepts the request, preventing a 404 error from WordPress.

Frequently Asked Questions

No. When configured correctly on a subpath (e.g., /l/*), the Cloudflare Worker intercepts requests for short links before they reach your main server. All other traffic passes through normally. Redirects from the shortener use 301 or 302 status codes, which search engines understand correctly.

Since your domain is managed by Cloudflare, SSL is handled automatically. Cloudflare provides a free Universal SSL certificate that will cover both your main domain and any subdomains or paths used by the link shortener, ensuring all your links are served over HTTPS.

Absolutely. This setup doesn't prevent you from using other link shorteners. The primary benefit of OpenShort.Link is to use your own domain for branding, which builds more trust with your audience compared to generic short domains. It also works on your existing domain even if it has other software installed, as long as it is on Cloudflare.

Ready to get started?

Dive into the source code, fork the repository, and deploy your own branded link shortener in minutes.