Skip to content
T
Tools.Town
Free Online Tools for Everyone
Affiliate Link Cloaker illustration

Affiliate Link Cloaker

100% Free

Turn long affiliate URLs into short, branded /go/ links and generate the redirect snippet to deploy on your own site.

Branded Redirects
nofollow + sponsored
100% Client-Side
Instant Snippets

Cloak your affiliate link

Your cloaked link

Enter an affiliate URL to generate a short, branded redirect link.

100% client-side — your links never leave your browser.
Slugs are generated locally. No shortening server, no tracking, no account.

Embed This Tool

Easy to Embed

Add Affiliate Link Cloaker to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date

Share This Tool

Share Instantly

Share Affiliate Link Cloaker with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Paste the full affiliate URL you want to cloak — tracking parameters and all
  2. 2 Optionally type a custom alias (e.g. 'best-laptop'), or leave it blank for an auto-generated slug
  3. 3 Set your own domain and path prefix so the cloaked link is branded to you
  4. 4 Copy the short branded link to use in posts, videos, and emails
  5. 5 Copy the matching redirect snippet (HTML,.htaccess, or Nginx) and deploy it on your server

Features

  • Shortens any long affiliate URL into a clean branded link like yourdomain.com/go/abc123
  • Deterministic auto-slugs — the same URL always produces the same short code
  • Custom aliases that are automatically slugified to be URL-safe
  • Ready-to-paste redirect snippets for HTML meta-refresh, Apache.htaccess, and Nginx
  • Generates an anchor tag with rel="nofollow sponsored noopener" for compliant linking
  • Runs entirely in your browser — no shortening service, no account, no tracking

Why it Matters

Raw affiliate links are long, ugly, and instantly recognisable — many readers won't click a URL stuffed with a partner ID and ten tracking parameters, and some browsers or ad blockers strip them. Cloaking replaces that with a short link on your own domain, which looks trustworthy, is easy to remember, and lets you swap the destination later without editing old posts. Adding rel="sponsored nofollow" also keeps you on the right side of search-engine and FTC disclosure guidelines.

★★★★★

Use Cases

Bloggers & Reviewers

Replace messy affiliate URLs in posts with tidy /go/ links you can update any time

Creators & Streamers

Share one short, memorable link in video descriptions instead of a 200-character URL

Email Marketers

Use branded links in newsletters that survive forwarding and look less like spam

Link Management

Centralise redirects on your domain so a changed affiliate program means one edit, not fifty

What this tool does

The Affiliate Link Cloaker turns a long, parameter-heavy affiliate URL into a short, branded redirect link on your own domain — and gives you the exact redirect snippet to make it work. Everything happens in your browser; nothing you paste is sent anywhere.

A cloaked link has two parts:

  1. The branded link you share publicly, e.g. yourdomain.com/go/best-laptop.
  2. The redirect rule you deploy on your server so that path forwards to the real affiliate URL.

This tool generates both. Pick whichever redirect format matches your stack — an HTML meta-refresh page, an Apache .htaccess rule, or an Nginx location block.

  • Trust and click-through. Short branded links look credible; raw affiliate URLs with partner IDs look like spam and get fewer clicks.
  • Maintainability. When a program changes or ends, you edit one redirect rule instead of every post that used the link.
  • Compliance. The generated anchor tag includes rel="nofollow sponsored noopener", matching search-engine and FTC disclosure expectations.

What it does NOT do

  • It does not host the redirect. This is a snippet generator, not a link-shortening service — you deploy the redirect on your own server.
  • It does not track clicks. There’s no analytics backend; for click stats you’d add your own server-side logging or analytics.
  • It does not hide disclosure. Cloaking is for readability, not deception — always disclose affiliate relationships to your audience.

Privacy

The cloaked link and every snippet are built locally by the pure cloakAffiliateLink function. Editing any field produces zero network requests — you can confirm this in your browser’s Network tab.

Frequently Asked Questions

What does it mean to 'cloak' an affiliate link?
Cloaking replaces a long affiliate URL with a short, branded redirect link on your own domain — for example, turning amazon.com/dp/B09…?tag=you-21 into yourdomain.com/go/best-laptop. When a visitor clicks the branded link, a redirect on your server forwards them to the real affiliate URL. The destination is identical; only the link the visitor sees is cleaner.
Is affiliate link cloaking allowed?
Yes, when done transparently. Cloaking for readability and link management is standard practice and allowed by most affiliate programs and search engines. What is not allowed is deceptive cloaking — hiding that a link is an affiliate link, or showing search engines a different destination than users. Always disclose affiliate relationships and add rel="sponsored" or rel="nofollow", which this tool generates for you.
Does this tool actually shorten my link on a server?
No. This is a 100% client-side generator. It builds the branded link and the redirect snippet in your browser, but it does not host the redirect. You deploy the generated.htaccess, Nginx, or HTML snippet on your own server so that the /go/ path forwards to your affiliate URL. Nothing you enter is uploaded anywhere.
Why use rel="nofollow sponsored" on affiliate links?
Search engines ask that paid or affiliate links be marked so they don't pass ranking signals. rel="sponsored" identifies the link as paid, nofollow tells crawlers not to follow it for ranking, and noopener is a security best practice for target="_blank" links. This tool adds all three to the anchor snippet when the checkbox is on.
Will the same URL always get the same short code?
Yes, when you let the tool auto-generate the slug. It derives a deterministic 6-character code from the URL using a hash, so re-cloaking the same link gives the same /go/ code. If you want full control, type a custom alias instead — it will be slugified into a URL-safe form.
Can I change where a cloaked link points later?
That's one of the main benefits. Because the redirect lives on your server, you can update the destination of /go/best-laptop without touching any of the posts or videos that link to it. If an affiliate program ends, you change one redirect rule instead of editing every old reference.

Related Tools You Might Like

Browse more free tools