Today I am going to talk about these three values of the rel attribute for HTML links.

  • noreferrer
  • noopener

I'll point you to this article for a deep dive on noreferrer and noopener (And I've just linked you to the MDN docs on the attributes).

The gist of them is that they protect users from being tracked across websites. See, whenever a link is clicked, the default behavior is that information about the current window and domain are passed to the target window and target domain. By using these properties together, traffic to linked sites behave like direct traffic instead of backlinks.

For example, if someone clicks on my LinkedIn profile link from the homepage, LinkedIn opens in a new tab.

<a href="https://www.linkedin.com/in/jsolly/" rel="noopener noreferrer" target="_blank">Linkedin</a>

But from LinkedIn's perspective, it looks like they visited the URL directly (instead of coming from blogthedata.com) because referrer and window.opener are cleared out. This is nice for users because it improves their cross-site privacy.

Add these attributes to external links today to increase the privacy of your users!

Comments

Back to Home
John Solly Profile Picture
John Solly Profile Picture

John Solly

A hands-on AI practitioner who transitioned to a CTO role to broaden my impact.

Most of my career has been dedicated to developing spatial systems at Esri, startups, and federal agencies. Currently, I lead technology strategy for Leidos' Health IT division, supporting agencies such as SSA, VA, and HHS.

My primary focus is the convergence of spatial computing and AI, enabling machines to interpret the physical world and applying these capabilities to meaningful missions.

Please reach out if you are interested in spatial systems or advancing AI within the federal government.