Comments on: When & How to Use Noopener Noreferrer in WordPress https://wpshout.com/when-how-to-use-noopener-noreferrer-in-wordpress/ A hub for advanced WordPress users, developers & savvy business owners. Tue, 26 Jan 2021 01:01:08 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: James https://wpshout.com/when-how-to-use-noopener-noreferrer-in-wordpress/#comment-22089 Tue, 26 Jan 2021 01:01:08 +0000 https://wpshout.com/?post_type=quick_guide&p=22540#comment-22089 I really dislike the way WordPress inserts both of these options when adding links.

Under the html spec, noopener should be used to prevent the new page from being able to access the window.opener property and ensures it runs in a separate process. This is a security thing.

The noreferrer option includes the noopener settings plus hides referral.

There is no need for WordPress to add both of them.

From the spec: “It indicates that no referrer information is to be leaked when following the link and also implies the noopener keyword behavior under the same conditions.”

Source: https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrer

]]>