Skip to main content

Unsafe Cross-Origin Links Test

What is it?

This test will check if all links to external pages that have the target="_blank" attribute also have the rel="noopener" or rel="noreferrer" attribute.
When you link to an external site using the target="_blank" attribute, security and performance issues arise:
The external pages you link to may run on the same process as your page. If the other page is running a lot of JavaScript, your page's performance may suffer.
The other page can access your window object with the window.opener property. This may allow the other page to redirect your page to a malicious URL.
Adding rel="noopener" or rel="noreferrer" to your target="_blank" links avoids these issues.

Pass rate:

  • Top 100 websites: 45%
  • All websites: 46%
Pass rates of Top 100 US websites
2021

59%

2022

48%

2023

49%

2024

45%

100

75

50

25

0

How do I fix it?

In order to pass this test, you have to update each link identified in this report, by adding a rel="noopener" or a rel="noreferrer" attribute or both:

<a href="https://example.com" target="_blank" rel="noopener noreferrer">
	Click here
</a>
  • rel="noopener" prevents the new page from being able to access the window.opener property and ensures it runs in a separate process.
  • rel="noreferrer" has the same effect but also prevents the Referer header from being sent to the new page.

Dominate search today on Google and AI Engines.

Join 85,000+ SaaS Marketers, Growth Agencies, Content-Led Companies and E-commerce Brands.

See Pricing
Dashboard preview showing SEO site checkup metrics, page group insights, and issue prioritization