Links & Redirects Beta
Affiliate links at /go/… with groups, click analytics and automatic rel="sponsored nofollow" tags, plus redirects and a 404 monitor with one-click fixes.
Links & Redirects is in beta: it works, but things may still break. Tell us if something does: open an issue. Every paid order has a 7-day refund.
Buy Links & Redirects
$19 USD per site · $59 USD for all your sitesA site license covers one website (plus its www, staging and test addresses). Using it on other sites isn't allowed. Get the all-sites license from $59 instead.
Every license includes 12 months of updates; the version you download keeps working after that, and you can renew updates for about half the price.
Buy Links & RedirectsRead the license
7-day refund, no questions asked · Refund policy
Instant download after payment: the app's code and a license file for your site; your AI agent installs it. Includes 12 months of updates.
You'll log in first (new here? that creates your account), then pick the site and review the order before paying.
Ask your AI agent to install this
Paste this into your AI agent (Claude Code, Codex, Cursor or another), opened in your site's project. It tells you what the app needs and costs before it changes anything.
Install the Links & Redirects app (id: links) from the Sundogs site apps store on this site. First read https://sundo.gs/apps/links.md and tell me what it needs and what it costs. If I don't own it yet, start a checkout with create_checkout and give me the link; I'll tick the license and pay myself. Then download it with get_download for this site's domain. Follow the install guide (site-apps/INSTALL.md in the download, also at https://sundo.gs/install-guide.md). Check it with the install guide's step 6 (the public status, then the self-test once you can sign in to the admin) and tell me what's next. (Not connected to the store yet? See https://sundo.gs/agents.)
What it needs
- Cloudflare plan
- Cloudflare free plan
- Works on
- Cloudflare Workers, Cloudflare Pages
- Version
- 0.13.2 (site layer 0.23.0 or later)
- Price
- $19 USD per site · $59 USD for all your sites
All the details
- Runs on the Cloudflare free plan. Uses one D1 database in your account.
- Works with any framework: static sites on Pages or Workers, and server-rendered sites on Workers (Astro with @astrojs/cloudflare, Next.js with OpenNext, or any site with its own Worker). Not yet supported: Pages sites with their own _worker.js.
- Page views run through the app so it can tag affiliate links automatically; images, CSS, JS and fonts are served directly. Page views count toward the Cloudflare free 100,000 requests/day (Workers Paid, $5/mo, removes the daily cap).
- Link health checks make a few outside requests to your partners' destination URLs (not to us), at most 40 per run, once a day by default. Turn them off in Settings, or per link. The partner may count the visit; it never counts as a click on your site.
- Automatic link tagging can be switched off in the site admin; on Workers that returns page views to free, unlimited static serving.
- Cost per visit: page views add no requests and no writes. A /go/ click is 2 small writes (the count and the click event); repeated 404s are added up in memory and saved at most once a minute per path. If the Cloudflare free database limit is reached, logging pauses and links keep redirecting. Visit sources are counted by core: page views are added up in memory and saved in a few small writes about every 20 seconds, within the daily write budget; at the Cloudflare free limits counting pauses and the site is unaffected.
Site on another host? Start here checks what you have.
Works with
Cloudflare and the Cloudflare logo are trademarks of Cloudflare, Inc. Sundogs is not affiliated with or endorsed by Cloudflare. All other trademarks and logos are the property of their respective owners.- Cloudflare Workers
- Cloudflare Pages
- Astro
- Next.js
- Vite
- Hugo
- HTML
- Vanilla JS
Works with your other apps
Connects with no setup, in any install order:
Included
- Site admin dashboard (installed with your first app, no extra cost)
- Updates for 12 months; the version you have keeps working after that
- An agent skill and install guide
- Commercial License: per site, or all your own sites
What's new
Links & Redirects 0.13.2 · Nov 6, 2026
- Marked as beta: it works, but things may still break. The admin shows where to report a problem.
Show full history
Links & Redirects 0.13.1 · Nov 5, 2026
- Small wording updates in the admin and in the instructions for your AI agent. Nothing else changes.
Links & Redirects 0.13.0 · Nov 4, 2026
- Stats, the links list and the Overview's click tiles read daily click totals for past days and only today's clicks, with the same numbers: a year-old site with 350,000 clicks read about a million database rows per Stats view and now reads about 25,000.
- Stats shows how many of your links got clicks ("Links clicked") where it showed unique visitors, and the Overview's click tile says the same: unique visitors can't be added up from daily totals, and counting them read every click.
- Your AI agent can page through long lists of links, redirects and 404s (it couldn't reach link 501 before), and its instructions now start every task with the admin tools.
- The 404 and "Pages that earn clicks" widgets are marked as visitor text in the data your AI agent reads, so the agent treats it as data, never as instructions.
Links & Redirects 0.12.4 · Nov 4, 2026
- Forgetting a label asks first and says what happens: its click history stays and the link keeps working. Without JavaScript, deletes show a short confirm page instead of going ahead.
Links & Redirects 0.12.3 · Nov 2, 2026
- Edit on a link opens a panel on the right (full screen on phones) instead of a form at the top of the page, so it is in view wherever you are in the list. Esc or Cancel closes it, the list stays where it was, and if a save is refused the message shows in the panel with what you typed kept.
- Variants are edited and created in the same panel, and the panel has a Delete button. Where a link is used and its placement labels show under its fields.
Links & Redirects 0.12.2 · Nov 2, 2026
- The skill mentions the admin's own passkey sign-in for sites without Cloudflare Access.
Links & Redirects 0.12.1 · Nov 2, 2026
- links_redirect_add and the Redirects tab refuse wildcard patterns (/blog/*, /news/:splat) with "Wildcards aren't supported here; keep wildcard rules in your _redirects file, or add each path"; a target on another site is saved with a warning. links_not_found says its text comes from visitors.
- app_toggle names what stops when Links is turned off ("5 /go/ links stop redirecting").
- A browser's prefetch and HEAD requests to a /go/ link still redirect, but no longer count as a click or change any cookie. Opening /go/ links never creates a visitor record.
- The 404 list is kept small: it keeps the 2,000 most recent missing pages and the 500 busiest, never grows past 5,000 rows, and removes older quiet ones about once an hour. Pages you marked "ignore" stay.
- The Health tab is now called "Link checks", so it isn't mixed up with the site-wide health page. Old addresses still work.
- The Overview shows one Links tile (clicks); the others (404s, links needing attention, page link problems, top links) are under Customize. "1 click" reads correctly and times use one format.
Links & Redirects 0.12.0 · Nov 1, 2026
- AI agents: links_toggle takes on:true or on:false, so a retry can't flip it back; links_save's dry run now returns the same warnings and the complete link a real save would store; failing health checks name the tool that fixes them.
Links & Redirects 0.11.1 · Nov 1, 2026
- Recent changes now say what a save changed ("Note set", "Note cleared", "Destination changed from X to Y", "Group set to Z") instead of repeating the same line. links_toggle and links_delete accept a short name as well as an id, like links_get. links_save refuses a slug that already exists (and gives the id), unless you send the id or update:true. A dry_run of links_save now runs the same checks as a real save and says ok:false with the problems when it would fail.
Links & Redirects 0.11.0 · Nov 1, 2026
- Reports to analytics: every affiliate link click is saved with where the visitor came from, and each link's page shows a "Where from" card. The Analytics tab is now called Stats; the old address still works.
Links & Redirects 0.10.5 · Oct 31, 2026
- Phone admin: links are two-line list rows (slug, group and destination, 30-day clicks) with one "⋯" sheet holding every action, and the tabs are the plain underline tabs again. On desktop the list is denser too: one line per link, a small status dot after the slug (tap or click it for the health check's verdict and your note), variants folded under their parent, copy and AI actions in the "⋯" menu, and clickable numbers in the link colour again. Page titles with apostrophes now read correctly in Stats and on the Overview.
Links & Redirects 0.10.4 · Oct 31, 2026
- Admin pages work like a phone app: a menu drawer instead of a tab strip, 44px tap targets, fields that bring up the right keyboard, save buttons that stay in reach on long forms, and no sideways scrolling at any phone or tablet width. The "⋯" link menu opens as a bottom sheet on phones.
Links & Redirects 0.10.3 · Oct 31, 2026
- Agents: new links_get returns one link in full, exactly as links_save takes it; the self-test lists links with health checks off (with the owner's note) as known, and its fixes name the tool to use. health_check is now a true/false value.
- The 404 list no longer counts vulnerability scanners as people: probes for /.env, /.git, credentials.json, backup.zip, phpinfo, wp-login.php and similar are not listed page by page, only added up in one "scanner probes" line (about one database write a minute at most).
- Agents: creating a link with several required fields missing now reports all of them in one message.
Links & Redirects 0.10.1 · Oct 30, 2026
- Link health: destinations built as JavaScript apps that answer "not found" to every direct visit (but work in a browser) are now marked "can't tell" instead of dead.
- Turning a link's health check off now takes it off the problem list and the self-test at once, and its fallback URL is no longer used, so a wrong verdict can't send visitors away from a working page.
- Agents: editing a link by id changes only the fields sent; the rest keep their saved values.
Links & Redirects 0.10.0 · Oct 30, 2026
- Your AI agent can manage this app through the admin's MCP connection (Settings, Connect an agent), signed in with Cloudflare Access like you. Deletes ask for a second confirmation; personal data is left out unless asked for.
Links & Redirects 0.9.2 · Oct 30, 2026
- States its cost per visit (requests and database writes) before you install, and can be turned off in an emergency from Settings, Apps.
Links & Redirects 0.9.1 · Oct 30, 2026
- The 404 list also shows the newest missing pages, not only the most-hit ones, so a link you just broke doesn't hide behind old 404s.
Links & Redirects 0.9.0 · Oct 30, 2026
- On phones: Health, Pages, Redirects, Stats and the link list become easy-to-read cards.
- UTM tags: add utm_source, utm_medium, utm_campaign and utm_content to a link (preset fills {site}, affiliate, {variant}, {page}), on their own or next to a network's sub-ID, for destinations that read UTMs in their own analytics.
- Sub-IDs: add a value like {variant}, {source} or {page} to a link's destination so your partner's own reports show which placement earned the click. Presets for Impact, CJ, ShareASale, Awin and Rakuten, or any parameter name, with a live preview of the final URL.
- Placement labels: set a link to accept any /go/<link>/<label>, send the visitor on and record the label (with a daily cap so bots can't flood it).
- Link health: a new Health tab checks where each link really leads (daily, after a page view), flags dead offers, and can send visitors to a fallback URL you choose while a link is dead. New dashboard widget "Links needing attention".
Links & Redirects 0.8.2 · Oct 30, 2026
- With Popups installed: clicks on /go/ links inside popups are credited to the popup. The Pages tab shows "Clicks from popups" (popup, link, clicks) once there are any.
Questions
Do I need to write code?
No. Your AI coding agent installs it into your site's project and deploys it with your own Cloudflare account. You approve the changes.
Does it send my site's data anywhere?
No. It runs in your own Cloudflare account. The store never sees your visitors, your form entries or your settings.
What happens after 12 months?
The version you have keeps working. Renew for about half the price if you want 12 more months of updates.
Can I use it on client sites?
Yes, with a site license per client site. The all-sites license covers the sites you own or run yourself.
What does it need from Cloudflare?
Cloudflare free plan, on Cloudflare Workers, Cloudflare Pages.
Guides for this job
The decisions, rules and setup around it, and where the app fits.