rel=noopener noreferrer: What's behind this HTML attribute?
Fundamentals of the HTML Link Tag
The HTML link tag forms the foundation for connecting web pages. It allows users to navigate from one page to another with a simple click. The structure of this tag may seem simple at first glance, but it contains some important elements that are significant for both the functionality and security of websites.
Let’s first look at the structure of a basic link tag. It begins with the opening <a> and ends with the closing </a>. In between, various attributes are found that influence the link’s behavior. The href attribute specifies the link’s target, while other attributes like title provide additional information.
The target attribute deserves special attention. With target=“_blank“, you instruct the browser to open the link in a new tab or window. This can improve the user experience by keeping the original page intact. However, this functionality also carries potential security risks, which we will examine in more detail in the course of this article.
Structure of a Link Tag in HTML
The syntax of an HTML link may seem simple at first glance, but it offers diverse possibilities for controlling behavior and security. A typical link is composed of several components, each fulfilling a specific function.
Let’s start with the basic structure: <a href=“https://example.de“>Link text</a>. Here, the href attribute defines the link’s target. The text between the tags is displayed as clickable link text. But this is just the tip of the iceberg. Further attributes like title=“Description“ can provide additional information for the user.
The target attribute plays a special role. With target=“_blank“, the link opens in a new tab or window. This leads us directly to the attributes rel=“noopener noreferrer“, which are the focus of this article. These attributes serve to minimize potential security risks and protect user privacy.
It is important to understand that each attribute in the link tag fulfills a specific function. The correct combination of these attributes allows web developers to create links that are not only functional but also secure and user-friendly.
The target attribute and its significance
The target attribute in the HTML link tag controls how the linked content is opened. A commonly used option is target=“_blank“, which instructs the browser to open the link in a new tab or window. This feature can significantly improve the user experience by allowing users to explore new content without leaving the original page.
While target=“_blank“ is undoubtedly useful, it also carries potential security risks. The newly opened tab by default gains access to the window object of the original page, which opens up possibilities for malicious scripts. This is where the attributes rel=“noopener noreferrer“ come into play, closing this security gap.
It is important to understand that the target attribute alone is not sufficient to ensure secure linking. The combination with rel=“noopener noreferrer“ forms a robust solution that considers both usability and security. Web developers should always use these attributes together to achieve an optimal balance between functionality and protection.
The rel attribute: Defining relationships between web pages
The rel attribute in HTML links serves to define the relationship between the current and the linked page. It is about more than just a simple connection; the rel attribute provides context and meta-information that is important for both browsers and search engines.
Become more visible on Google & Social Media?
In a free strategy consultation for data-driven online marketing, we uncover your untapped potential, review any existing ad accounts if necessary, examine your SEO ranking and visibility, and determine which strategy is appropriate for your budget and which active measures will lead to more inquiries or sales.

✅ More visibility & perception through targeted placement
✅ More visitors > prospects > customers > revenue
✅ Reach target groups scalably with SEA
✅ Act and grow sustainably with SEO
🫵 Maximum success with our hybrid strategy
💪 More than 15 years of experience across industries in over 1,000+ projects demonstrable!
The use of rel=“noopener noreferrer“ is at the heart of our consideration. This combination addresses two important aspects: security and privacy. With rel=“noopener“, you prevent the linked page from accessing the window object of the original page, while rel=“noreferrer“ prevents referrer information from being transmitted to the target page.
Numerous other rel values exist, each characterizing specific relationships. For example, rel=“stylesheet“ indicates that the link refers to a stylesheet, while rel=“author“ points to information about the page’s author. The correct use of these attributes contributes to the semantic structure of the web and improves interpretation by machines.
Overview of different rel values
The rel attribute in HTML links offers a variety of values, each defining a specific relationship between the current and the linked page. These values are not only important for structuring web content but also play a significant role in SEO and website security.
In addition to the already mentioned rel=“noopener“ and rel=“noreferrer“, there are other important rel values. For example, rel=“alternate“ identifies alternative versions of a page, such as in other languages. rel=“canonical“ points to the preferred version of a page, which is particularly relevant for duplicate content. rel=“prev“ and rel=“next“ are used for content pagination.
For search engine optimization, values such as rel=“sponsored“ for paid links or rel=“ugc“ for User-Generated Content are important. They help search engines better understand the type of linking and evaluate it accordingly. The correct use of these attributes can positively impact a website’s ranking and contribute to the clarity of the web structure.
rel=noopener: Security for your website
The attribute rel=“noopener“ plays a crucial role in the security of your website, especially when you use links that open in a new tab. It addresses a specific security vulnerability known as „Reverse Tabnabbing,“ which can have potentially dangerous consequences.
Without rel=“noopener“, the newly opened page gains access to the window object of the original page via window.opener. This theoretically allows the original page to be manipulated or redirected, posing a significant security risk. By using rel=“noopener“, this connection is effectively broken.
Implementing rel=“noopener“ is straightforward and should be standard for all external links with target=“_blank“. It does not affect the link’s functionality or user experience but provides important protection for your visitors and your website. In combination with rel=“noreferrer“, you create a robust security barrier against potential attacks.
The "Tabnabbing" risk
„Tabnabbing“ represents a sophisticated form of phishing that specifically targets links opened in new tabs. In this attack method, a malicious website exploits the connection to the original tab to manipulate or redirect it while the user is distracted.
The attack works by the newly opened page gaining access to the original tab via the window.opener object. It can then change the URL of the original tab, for example, to a phishing page that pretends to be the real page. When the user returns to the original tab, they might unknowingly enter sensitive data on a fake page.
This risk highlights the importance of rel=“noopener“. By using it, the connection between the tabs is effectively severed, so that the opened page no longer has access to the window object of the original tab. This prevents manipulation and protects your users from potential phishing attacks without affecting the functionality of the links.
How rel=noopener increases security
The rel=“noopener“ attribute acts as an effective protective measure against „tabnabbing“ attacks by severing the connection between the opening and the opened window. Its mode of action is as simple as it is effective and significantly increases the security of your website.
When you add rel=“noopener“ to a link, the window.opener object in the newly opened tab is set to null. This prevents the opened page from accessing or manipulating the window object of the original page. This effectively eliminates the possibility of a „tabnabbing“ attack.
The implementation of rel=“noopener“ is straightforward and should become standard practice for all external links with target=“_blank“. It does not affect the functionality of the link or the user experience, but provides important protection. In combination with rel=“noreferrer“, you create a robust security barrier that protects your visitors from potential attacks and strengthens trust in your website.
rel=noreferrer: Control over referrer information
The rel=“noreferrer“ attribute plays an important role in protecting the privacy of your website visitors. It controls the transmission of referrer information, which is normally sent to the target page of a link. This information can reveal details about the visitor’s origin, which may be undesirable in some cases.
By using rel=“noreferrer“, you prevent the browser from sending referrer data to the target page. This means that the linked page does not know from which URL the visitor came. This can be particularly important if you link to external resources but do not want them to receive information about your internal page structure or specific URLs.
The implementation of rel=“noreferrer“ is simple and can be used in combination with rel=“noopener“. Together, they form a strong protective measure that takes into account both the security and privacy of your users. It is a practice recommended by many web developers as a standard for external links.
What is referrer information?
Referrer information is metadata that is transmitted from one website to the next when a link is clicked. It provides information about the URL from which a visitor came. This data can be used for various purposes, from analyzing user traffic to tracking marketing campaigns.
By default, the browser sends this information to the target page of a link. This happens via the HTTP Referer header (yes, the spelling with one „r“ is historical). This data can contain sensitive information, such as internal URLs or search parameters, which may not be intended for external pages.
Controlling referrer information is an important aspect of data protection on the web. By using rel=“noreferrer“, you can prevent this data from being transmitted. This protects the privacy of your users and prevents external pages from gaining insight into your internal page structure or specific URLs.
Advantages of using rel=noreferrer
The use of rel=“noreferrer“ offers several important advantages for websites and their users. Primarily, it serves to protect privacy by preventing sensitive information about the visitor’s origin from being transmitted to the target page. This is particularly relevant if your internal URL structure contains confidential information.
Another advantage lies in security. By suppressing referrer information, it becomes more difficult for potential attackers to gain insight into the structure of your website. This can help to minimize certain types of security risks.
For website operators, rel=“noreferrer“ also offers control over their own analytics data. It prevents external pages from analyzing your internal linking structures. This can be particularly important if you link to resources but do not want these pages to gain insight into your traffic sources.
The combination: rel="noopener noreferrer"
The combination of rel=“noopener noreferrer“ combines the advantages of both attributes and offers comprehensive protection for your website and its visitors. This combination is often recommended as a best practice for external links, especially if they are to be opened in a new tab or window.
With rel=“noopener“, you prevent the opened page from gaining access to the window object of the original page, which prevents potential „tabnabbing“ attacks. At the same time, rel=“noreferrer“ ensures that no referrer information is transmitted to the target page, which protects the privacy of your users and prevents external pages from gaining insight into your internal page structure.
The implementation of this combination is simple and requires only a small change in your HTML code. By using both attributes, you create a robust security barrier that improves both the functionality and the protection of your website.
Synergy effects of the combination
The combined use of rel=“noopener noreferrer“ creates synergy effects that go beyond the sum of the individual parts. While each attribute in itself offers important protective functions, their combined use significantly enhances the security and data protection of your website.
rel=“noopener“ prevents potential JavaScript-based attacks by preventing access to the window object. rel=“noreferrer“ complements this by stopping the transmission of origin information. Together, they form a comprehensive protective layer that prevents both active attacks and passive data collection.
This synergy also extends to user-friendliness. The combination allows you to open external links in new tabs (which is often considered user-friendly) without compromising security. You thus offer your visitors both a good experience and comprehensive protection.
Best practices for use
When implementing rel=“noopener noreferrer“, you should observe some best practices to ensure maximum security and compatibility. First, it is important to consistently use these attributes for all external links that are to be opened in a new tab or window.
The correct syntax is: <a href=“https://example.com“ target=“_blank“ rel=“noopener noreferrer“>Link</a>. Make sure that both attributes – „noopener“ and „noreferrer“ – are included in the rel attribute, separated by a space. This order is not mandatory, but consistent use facilitates maintenance.
It is also advisable to configure these attributes as standard for external links in your content management systems or website generators. This ensures that they are not accidentally forgotten. Keep in mind that these attributes do not affect the functionality of the link – they merely add an additional layer of security.
SEO Implications of rel="noopener noreferrer"
The use of rel=“noopener noreferrer“ generally has no negative impact on your search engine ranking. In fact, many SEO experts consider this practice positive, as it improves the security and data protection of your website – factors that are increasingly considered by search engines.
It is important to understand that rel=“noreferrer“ prevents referrer information from being transmitted to the target page. This could theoretically affect the „link juice“ you pass on to other pages. In practice, however, it has been shown that this has no significant impact on SEO performance.
Google has confirmed that the use of rel=“noopener“ or rel=“noreferrer“ does not affect the passing of PageRank. Search engines are able to track and understand these links, even if no referrer information is transmitted. Ultimately, the security benefits outweigh any theoretical SEO concerns.
Conclusion: The Importance of rel=“noopener noreferrer“ for Modern Websites
The use of rel=“noopener noreferrer“ has established itself as an important component of modern web development. This combination of attributes offers comprehensive protection against potential security risks and contributes to the privacy protection of your website visitors.
In an age where cybersecurity and data protection are increasingly in focus, the implementation of such security measures is not only a technical necessity but also a sign of responsibility towards your users. The simple implementation and broad browser support make rel=“noopener noreferrer“ an easily accessible yet effective security measure.
In conclusion, the benefits of these attributes far outweigh the minimal effort required for implementation. Website operators and developers should consider using rel=“noopener noreferrer“ as a standard for external links to create a safer and more trustworthy web environment.






