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:
- The branded link you share publicly, e.g.
yourdomain.com/go/best-laptop. - 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.
Why cloak affiliate links
- 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.