Just today morning, I saw these “noopener noreferrer” tags are getting added automatically after rel=”nofollow” in the WordPress backend while I write new articles or edit existing articles.
These were the URLs before –
<a href="https://example.com/example" target="_blank" rel="nofollow">Assume</a>
Now, all of such external URLs are getting converted to
<a href="https://example.com/example" target="_blank" rel="nofollow noopener noreferrer">Assume</a>
How to remove these noopener noreferrer tags from adding automatically?
Are they really necessary?
]]>They help prevent other sites hijacking your content and are definitely required if you value your site security. There shouldn’t be a need to remove these.
~ Steven
]]>Thanks Steven for the quick reply.
I will then keep them on the website.
Is there any guide I can read to know more about these tags? Because I still couldn’t get, how these tags (noopener noreferrer) help in website security.
]]>~ Steven
]]>Is there a way to change it back so that internal links opening in a new page are switched back to dofollow links?
]]>https://www.ads-software.com/support/forum/how-to-and-troubleshooting/#new-post
]]><a href="page1.html" target="_blank" rel="nofollow" onClick="ga('send','event','display','click','objet1');">my link</a>
when i update my article, wordpress changes the code :
<a href="page1.html" target="_blank" rel="nofollow noopener noreferrer">my link</a>
So wordpress changes the rel=”nofollow” with rel=”nofollow noopener noreferrer” but it also delete the tracking events code onClick="ga('send','event','display','click','site1');"
Does someone knows how to do to keep the tracking code?
]]>This has probably been done to avoid what is known as Reverse Tabnabbing. Reverse Tabnabbing occurs the attacker uses window.opener.location.assign() to replace the background tab with a malicious document. Do not remove them, if you value your site. And even if you remove it, WordPress will put it back when you save the post, also it applies to your old posts if you edit and save/update.
]]>