UnQTools
SEO Runs in your browser

Affiliate Link Cloaker & Redirect Generator

Cloak affiliate links into pretty URLs and generate redirect scripts (PHP, JavaScript, HTML meta refresh), plus .htaccess, nginx, and robots.txt rules. CSV import of slug/affiliate_url pairs, slug auto-generator from hostname, click-tracking parameter builder, URL-shortener compatibility check, history (localStorage), shareable URL. 100% client-side.

100% Private Works Offline Instant

About Affiliate Link Cloaker & Redirect Generator

Cloak affiliate links into pretty URLs and generate redirect scripts (PHP, JavaScript, HTML meta refresh), plus .htaccess, nginx, and robots.txt rules. CSV import of slug/affiliate_url pairs, slug auto-generator from hostname, click-tracking parameter builder, URL-shortener compatibility check, history (localStorage), shareable URL. 100% client-side. Everything runs locally in your browser — your data never leaves your device.

How to use

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. Everything happens locally — your data never leaves your browser.

FAQ

How does the affiliate link cloaker work?

Enter your base URL (e.g. https://example.com/go/) and a CSV of slug,affiliate_url pairs. The tool generates a pretty URL for each link (https://example.com/go/<slug>) and emits redirect scripts in three formats (PHP, JavaScript, HTML meta refresh), plus .htaccess RewriteRules, nginx rewrite rules, and a robots.txt Disallow line to keep /go/ out of search indexes.

Which redirect types are generated?

Three: PHP redirect (header Location + exit), JavaScript redirect (window.location.href), and HTML meta refresh (http-equiv=refresh content=0;url=...). Plus .htaccess RewriteRule per link, nginx rewrite per link, and a robots.txt block.

How are slugs validated?

Slugs must be unique across the batch and match ^[a-z0-9-]+$ (lowercase letters, digits, hyphens only). Affiliate URLs are validated as proper URLs with a hostname. Duplicate slugs and malformed URLs are flagged in the validation report.

What extra features does this tool have?

(1) CSV parser with field validation. (2) Pretty URL generator. (3) PHP redirect generator. (4) JavaScript redirect generator. (5) HTML meta-refresh generator. (6) .htaccess RewriteRule generator. (7) nginx rewrite generator. (8) robots.txt Disallow generator. (9) Link validation (URL format, slug uniqueness, slug format). (10) Click-tracking parameter builder (?src=newsletter). (11) Text report (all formats). (12) CSV export (slug, affiliate_url, pretty_url). (13) Download .txt / .csv / .htaccess / nginx.conf. (14) History (localStorage, max 20). (15) Shareable URL. (16) Slug auto-generator from URL hostname. (17) Summary stats. (18) URL-shortener compatibility check (≤30 chars).

Is my data sent anywhere?

No. All parsing, validation, and script generation runs locally in your browser. History is stored in localStorage on this device only. No affiliate URLs are transmitted.

Search tools and actions

Search across all 258 tools, categories, and quick actions.