Article updated 4 February 2020 at 5 h 10 me

 

Why WordPress now added automatically
NOREFERRER, NOOPENER to all links in target_blank ?

Rel = "noopener" : an attribute to better secure the links made target = blank.
Rel = »noreferrer» : an additional attribute in the first ONLY for Mozilla Firefox
but more ESPECIALLY an attribute that prevents any external site mesh to obtain driving traffic (referrer).

In summary, in the presence of this attribute noreferrer, At a site in WordPress 4.7.4 or greater that achieves a link
to a site with a B visits tracking tool will not transmit the information that is causing this traffic to the measuring tool.
Site B will not be able to know that the site A has sent N visits him, which can be very problematic in certain cases : ex : partnership.

Adding the noopener attribute is overall very recommended on all links in target = "_ blank" to correct the security flaw discovered.
Adding the noreferrer attribute to him a much more debatable interest. It may ask you to different levels problem :
The sites you mesh can not detect that you are talking to them and that you are an attractive source of traffic for them.
(it's a shame and it can cause you problems in many cases, especially in the case of such partnerships)
The noreferrer attribute is only useful complement noopener for Firefox
(although this remains a browser widely used in France, it's not Google Chrome and risks are already more limited).

 

 

How to remove the automatic addition of
Rel = NOOPENER ET NOREFERRER sur WordPress ?

Two solutions exist.
1) WordPress Plugin dedicated No noopener noreferrer – Don’t add rel= »noopener noreferrer».

Or

2) Add the following lines to your WordPress install fonction.php of.

add_filter('tiny_mce_before_init','tinymce_allow_unsafe_link_target');

function tinymce_allow_unsafe_link_target( $mceInit ) {

$mceInit['allow_unsafe_link_target']=true;

return $mceInit;

}


1
1.0 rating
1 / 5 star (1 view)
Excellent0%
Very good0%
Average0%
Poor0%
Horrible100%

Cancel

 

Rate this article

does not work

1.0 rating
31 March 2020

Leave a Reply

Your email address will not be published. Required fields are marked *