Security hardening from Pro's HTML external links

Hello Pro,
Would there be a way to have a somewhat built-in (or any automated way) to add the following attribute to external links? For instance, when “New Tab” is checked on a link.

rel="noopener noreferrer"

So it would look like: <a target="_blank" href="https://www.linkedin.com/company/magik-web" rel="noopener noreferrer">My External Link</a>

Our client requires us to add it for cybersecurity insurance reasons (https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerability-ever-96e328301f4c).

Thank you for any advice! :slight_smile:

Hi @magikweb,

Thanks for reaching out.
If you are using the Image element and enable the Link option in it, you can add the Custom Attribute as shown in the screenshot.

If you are adding any custom HTML code using the Text or Raw Content element, you can add the attribute directly to the Code.

Hope it helps.
Thanks

Thank you for the follow-up!
That’s not very automated though, considering we have 2000+ links to change, this method could take a while.

We’ll look into the hooks/filters to see if we could pull something out.

Hi @magikweb,

This can also be done using custom JS code but it is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Thank you.

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