rel=”noopener noreferrer” is two separate instructions on a link that opens in a new tab. noopener stops the new page from reaching back and controlling your tab, and noreferrer also hides which page the click came from. Neither one changes how Google ranks you or the page you link to. The values Google does read are nofollow, sponsored and ugc.
In current WordPress (7.1), switching on “Open in new tab” in the block editor saves rel="noopener" only. Core stopped adding noreferrer in WordPress 5.6 (December 2020), and in 6.7 it removed its save-time wp_targeted_link_rel() filter entirely (changeset 59120, ticket #53843). If you still see noreferrer on your site, it comes from older content, the File block, a theme or plugin, or pasted HTML.
Below: a comparison of all five values, exactly what WordPress 7.1 saves for each kind of link, and how to clean up old noreferrer attributes. For adding nofollow to a navigation menu, which WordPress hides behind a screen option, see how to add nofollow links in WordPress menus.
noopener vs noreferrer vs nofollow vs sponsored vs ugc
The first two are instructions to the browser. The last three are hints to search engines. You can combine values from both groups on one link.
| Value | What it does | Read by | Affects SEO? | Use it for | Added by WordPress 7.1? |
|---|---|---|---|---|---|
noopener | Opens the new tab without a link back to your page (window.opener is null) | Browser | No | Links that open in a new tab | Yes, on new-tab links in the block and classic editors |
noreferrer | Sends no Referer header, and also behaves as noopener | Browser | No ranking effect; the destination sees the visit as direct | Links where you do not want the destination to know the source | Only on the File block’s new-tab link |
nofollow | Asks Google not to associate your site with the page or crawl it from your link | Search engines | Yes (a hint) | Links you do not vouch for, when sponsored or ugc does not fit | Optional “Mark as nofollow” switch; comment links |
sponsored | Marks ads and paid placements | Search engines | Yes (a hint) | Paid and affiliate links | No, add it yourself |
ugc | Marks user-generated content | Search engines | Yes (a hint) | Comments and forum posts | Comment links get nofollow ugc since 5.3 |
A link like rel="sponsored noopener" is valid and common: one value for Google, one for the browser. Google’s link attributes documentation lists only sponsored, ugc and nofollow as ways to qualify a link, so noopener and noreferrer do not change how Google treats it.
What does rel=”noopener” do?
When a link opens a new tab, the new page historically got a JavaScript handle to your page through window.opener. A malicious page could use it to swap your tab for a lookalike, such as a fake login screen, while the reader was looking at the new tab. That attack is called reverse tabnabbing. rel="noopener" opens the new tab with no opener, so there is nothing to grab.
Is rel=”noopener” still needed?
For security, mostly no. The HTML Standard now says a link with target="_blank" behaves as noopener unless it says rel="opener". Browsers shipped this implicit noopener in Safari 12.1, Firefox 79 and Chrome and Edge 88 (January 2021), per MDN’s compatibility data. That is also why WordPress 6.7 stopped adding it on the server: the core change notes that supported browsers no longer give the opened page JavaScript access to the previous tab.
The editor still adds noopener to new-tab links, and it does no harm, so there is no reason to strip it. It only matters for very old browsers.
What does rel=”noreferrer” do?
Normally the browser sends a Referer header to the site you link to. noreferrer tells it to send none. Per the HTML Standard, it also behaves as if noopener were set, so rel="noreferrer" alone already covers both.
The privacy gain is smaller than older guides suggest. Since Chrome 85, Firefox 87 and Safari 15, the default referrer policy is strict-origin-when-cross-origin, which sends another site only your domain, not the full page URL. So without noreferrer, the destination learns “smartwp.com”, not which post the click came from.
The practical cost is analytics. With no referrer, the site you link to cannot attribute the visit to you, so it usually shows up as direct traffic in their reports. If you work with partners who look at referral traffic from your site, noreferrer makes you invisible to them.
noopener vs noreferrer: what is the difference?
noopener cuts the JavaScript link between the two tabs and nothing else, so the destination still sees where the visitor came from. noreferrer does that and also drops the referrer. Use noopener when you only want the security behavior, which browsers now apply to new-tab links by default anyway. Use noreferrer when you specifically do not want the destination to know the source.
noopener vs nofollow
They work at different layers. noopener is for the browser and only matters when a link opens in a new tab. nofollow is for search engines and applies whether the link opens in a new tab or not. Adding noopener does not make a link nofollow, and adding nofollow does nothing for new-tab security.
So rel="nofollow noopener" is not redundant: it means “do not vouch for this in search” plus “open it safely in a new tab.” Since 2019 Google treats nofollow, sponsored and ugc as hints rather than strict rules, and recommends sponsored over nofollow for paid links.
Does rel=”noopener noreferrer” affect SEO?
No. Google’s outbound link documentation names three values that change how it treats a link: sponsored, ugc and nofollow. noopener and noreferrer are browser behaviors. Adding or removing them changes nothing in rankings.
The one indirect effect is the analytics point above: noreferrer hides your site in the destination’s referral reports. For general linking practice, see these WordPress SEO tips.
What WordPress 7.1 adds to new-tab links
Checked against the editor scripts WordPress 7.1.4 ships (format-library and block-library) and core’s PHP source. These values are written into the saved post HTML when you save; nothing is added later on the server.
| Where the link is | Setting | rel saved |
|---|---|---|
| Text link in a paragraph, heading or list | Open in new tab | noopener |
| Text link in a paragraph, heading or list | Open in new tab + Mark as nofollow | noopener nofollow |
| Button block | Open in new tab | noopener |
| Image block link | Open in new tab | noopener |
| File block (file name link) | Open in new tab | noreferrer noopener |
| Social Icons block | Any | noopener nofollow |
| Classic Editor (TinyMCE) | Open link in a new tab | noopener |
| Comment links | Automatic | nofollow ugc |
The history explains the mix you find in older posts. WordPress 5.1 added a save-time filter that put noopener noreferrer on every link with a target, 5.6 cut it to noopener, and 6.7 retired the filter. Posts saved between those versions keep whatever was written at the time, in either order (noopener noreferrer or noreferrer noopener).
rel=”noreferrer” and affiliate links
Most affiliate links carry your tracking ID in the URL itself, and noreferrer does not touch the URL, so the click is still credited to that ID. What noreferrer removes is the referring page. If a program checks which site a click came from, or you want your traffic to show up in a partner’s referral reports, leave noreferrer off those links.
For Google, Google’s spam policies expect affiliate links to be “treated appropriately”, which points to the sponsored value. A clean affiliate link that opens in a new tab is rel="sponsored noopener". In the block editor the link popup only offers nofollow, so set sponsored with Edit as HTML; the nofollow guide shows where that lives in menus too.
How to remove rel=”noopener noreferrer” in WordPress
Removing noopener has no real upside, and removing noreferrer only matters for referral attribution. If you still want to, there are three cases.
New links in the block editor
There is no setting to turn the attribute off. Turning “Open in new tab” off removes noopener with it. To keep the new tab but drop the attribute, edit the block as HTML. No plugin is needed: since 5.6 nothing adds noreferrer to paragraph links, which is why the old Remove Noreferrer plugin has not been updated in more than five years.
New links in the Classic Editor
TinyMCE adds noopener to new-tab links unless its allow_unsafe_link_target option is on. This snippet turns it on. Add it to your theme’s functions.php file or with the Code Snippets plugin:
<?php
// Stop the Classic Editor (TinyMCE) from adding rel="noopener" to new-tab links.
add_filter( 'tiny_mce_before_init', 'smartwp_allow_unsafe_link_target' );
function smartwp_allow_unsafe_link_target( $mceInit ) {
$mceInit['allow_unsafe_link_target'] = true;
return $mceInit;
}
Older guides suggest the wp_targeted_link_rel filter instead. That filter only ran inside the save-time function WordPress 6.7 deprecated, so on current WordPress it does nothing.
Old content that already has noreferrer
Saved links keep their attributes until you change the HTML. With Better Search Replace, run a dry run first on the wp_posts table for each order. With WP-CLI:
wp search-replace 'noopener noreferrer' 'noopener' --include-columns=post_content --dry-run
wp search-replace 'noreferrer noopener' 'noopener' --include-columns=post_content --dry-run
Back up the database, check the counts, then run the same commands without --dry-run. One caution: File blocks save noreferrer noopener as part of their markup, so changing it there makes the editor report that the block contains unexpected content the next time you open the post. Skip posts with File blocks, or let the editor recover them.
Frequently asked questions
What is the use of noopener noreferrer?
noopener stops a page opened in a new tab from controlling your original tab through window.opener. noreferrer also stops the browser from telling that page where the visitor came from. Together they make a new-tab link safe and anonymous. Modern browsers already apply noopener to target=”_blank” links on their own.
Is rel=”noopener noreferrer” still needed?
Not for security in current browsers, which treat target=”_blank” as noopener by default since Chrome 88, Firefox 79 and Safari 12.1. It is harmless to keep. Keep noreferrer only if you deliberately want to hide the referring page.
What does no referrer mean?
It means the browser sends no Referer header when the link is followed, so the destination site cannot see which site or page sent the visitor. In their analytics the visit usually appears as direct traffic.
Is noreferrer the same as nofollow?
No. noreferrer is a browser instruction about the Referer header. nofollow is a hint to search engines that you do not vouch for the link. noreferrer has no effect on how Google treats the link, and nofollow has no effect on referrer data.
Should affiliate links use rel=”sponsored noopener”?
That is a sensible default for an affiliate link that opens in a new tab. sponsored is the value Google asks for on paid and affiliate links, and noopener covers older browsers. Leave out noreferrer if your program or partner reports rely on seeing your site as the referrer.
Does WordPress add rel=”noopener” to internal links?
Only when you set the link to open in a new tab, whether it points to your own site or another one. Links that open in the same tab get no rel value. On WordPress 7.1 a text link gets noopener alone; the File block is the exception and still saves noreferrer noopener.




4 Responses
Thanks for sharing this, I’m facing the same problem.that doesn’t allows to give the do follow backlink to my another website.
Hey Chaitanya, by default links are dofollow, if it has rel=”nofollow” you have a plugin that’s adding that in and would need to be configured through that.
Thanks for your article, but I applied it and it did not work.
The code does not work with the default wordpress editor and the classic editor plugin.