Roger Mendoza

Affiliate links rot. Here's how to manage them at scale.

Programs change, products disappear and redirects break quietly. A practical system for keeping hundreds of affiliate links healthy without checking them by hand.

Update, October 2026. The managed /go/ redirect described here is now the heart of AffRank V4, which also records the page and placement of every click. See AffRank V4.

If you run content sites long enough, you learn a painful truth: links decay. Products get discontinued. Programs change networks. Tracking parameters change format. Redirects start pointing at a homepage — or a 404. None of this announces itself. You just notice, months later, that a page that used to earn doesn't.

Here's the system I use, and the thinking behind link management in AffRank.ai.

The single biggest improvement is indirection. Instead of pasting a raw affiliate URL into fifty articles, every link points to a managed link — a record with an ID, a destination, a program and a status. Content references the ID. When the destination changes, you update one record, not fifty pages.

This can be as simple as a redirect path on your own domain (/go/product-name) backed by a database table.

A link record should know:

  • Which program or network it belongs to.
  • Which pages use it.
  • When it was last checked, and the result.
  • An optional fallback destination if the primary fails.

With that, "which pages are affected if this program shuts down?" becomes one query.

Step 3: check them automatically

A scheduled job walks every managed link and records:

  • The final HTTP status after following redirects.
  • Where it actually landed (is it still the product page, or a generic homepage?).
  • Response time.

A simple Python worker or an n8n workflow is enough to start. Be polite: rate-limit requests and respect the sites you're checking.

Step 4: detect soft failures

Hard failures are easy — a 404 is a 404. The sneaky ones return 200 OK:

  • The product page now says "currently unavailable."
  • The redirect lands on a category page.
  • The tracking parameter got stripped somewhere along the way.

Comparing the landing URL to the expected pattern catches many of these. Checking the page for a few "unavailable" phrases catches more. AI can help classify landing pages when the patterns get messy — with a human reviewing anything it flags.

Step 5: route problems to a queue

Broken links shouldn't create panic; they should create tasks. Each failure lands in a review queue with the affected pages ranked by traffic or revenue. Fix the links that matter most first. If a fallback exists, switch to it automatically and note that you did.

Monthly, look at:

  • How many links broke and which programs caused most of the breakage.
  • Average time from break to fix.
  • Revenue on pages before and after fixes.

Patterns emerge fast. Some programs are stable for years; some churn constantly. That's useful information when you choose which programs to promote.

The bigger lesson

Link management is a small example of a big pattern: anything external will change without telling you, so monitor it like infrastructure. I learned that keeping enterprise application delivery running; it applies just as well to a site full of affiliate links.

Some links in these notes are affiliate links. If you buy through one, I may earn a commission at no extra cost to you. I only link to tools I use or would recommend.