Cloak Affiliate Links on Discourse Server

Can anyone recommend a way I can cloak affiliate links in my discourse forum?
I have had a look at the affiliate plugin and ads plugin hoping I could use one of these, but it doesn’t appear to be possible.

I thought about creating php scripts in the public folder within the docker environment but these would be deleted when updates occur.

Is there a way to do this outside of the docker environment or is there a plugin that can manage affiliate links?

I think that you could do that with a theme component, or perhaps with watched words.

1 Like