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.
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
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- 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.
Related tools
Affiliate Commission Calculator
Calculate affiliate commissions across four program types — flat percent, tiered percent (progressive brackets), recurring (monthly × N months), and hybrid (initial + recurring). Apply refund-rate and tax-withholding adjustments, compute effective commission rate, compare two program types side-by-side, and project break-even sales to hit a target income. History (localStorage) + shareable URL. 100% client-side.
Anchor Text Distribution Analyzer
Analyze anchor text distribution from backlink data. Categorize anchors as exact/partial match, branded, generic, naked URL, or image. Compute distribution %, warn on over-optimization, and export. 100% client-side.
Backlink Gap Analyzer
Find backlinks your competitors have but you don't. Multi-competitor support (up to 3), gap detection, opportunity scoring, shared backlinks, top opportunities sorted by DA, export CSV, history (localStorage), shareable URL. 100% client-side.