Plugin to rewrite external links on new posts

AI-generated summary

Mihir is seeking a plugin (or theme adaptation) to rewrite all external links in new and existing posts to route through a custom domain (e.g., “http://google.com” → “http://abc123.com/goto/http://google.com”) for tracking and appending affiliate parameters. The goal is to funnel all outbound traffic through a script on their domain. zogstrip and pfaffman advise providing a budget to attract developer interest, noting that Discourse already has built-in link tracking and that a custom plugin may be overkill depending on the exact use case. Mihir clarifies the intent is to control redirection logic and append affiliate tags dynamically. No existing posts require migration—only interception of new or edited content.

I want a plugin that will intercept all new (and modify existing post too) topic/post and rewrite external URL to something like following

“http://google.com” —> “http://abc123.com/goto/http://google.com”

The end goal here is to make all external links go through my domain (I will write script on abc123 for the redirect, that is not part of this job).

There are no existing posts on the forum, so only it does not need to any find-replace, only listen to new changes.

If the same functionality can be achieved through an adopted theme, that’s fine with me too.

Please post your offer below, I will PM you then.

1 Like

You’ll have better luck if you provide a budget.

1 Like

Discourse does link tracking. Depending on they you’re trying to accomplish, a plugin that does wherever you’re trying to do if probably a better idea.

If you don’t have a budget, developers don’t know whether it’s worth the time to respond.

1 Like

Thanks. I am trying to send all traffic through a custom script, so I can append affiliate parameters wherever applicable and redirect other domains as they are.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.