Warning before external link

I’m looking for a plugin or a setting which can add a warning page before redirecting to an external link in any topic, of-course on a self hosted discourse instance. The intention is to prevent phishing attacks.

You can rewrite external links using a theme-component as described by Redirect Page for External URLs - #14 by Johani

3 Likes

Alright. While exploring, I found this plugin https://github.com/discourse/discourse-affiliate which I guess can be forked and modified for my use-case. What do you say?

3 Likes

That’s even better, as it will affect how the links are saved in the database.

2 Likes

Oh! Does that mean existing topics won’t have this change if I add this plugin now?

You can Rebake all posts matching a pattern to change old posts.

1 Like

We also have this old topic on the matter

1 Like

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