What is rel=ugc? | Definition & Guide
rel=ugc is an HTML link attribute introduced by Google in 2019 that identifies hyperlinks within user-generated content — such as forum posts, blog comments, and community discussions — signaling to search engines that the link was not editorially placed by the site owner.
Definition
rel=ugc is an HTML link attribute introduced by Google in 2019 that identifies hyperlinks within user-generated content — such as forum posts, blog comments, and community discussions — signaling to search engines that the link was not editorially placed by the site owner. The "ugc" stands for "user-generated content." It was introduced alongside rel=sponsored as a more granular alternative to rel=nofollow, which previously served as the catch-all attribute for links a site did not want to vouch for. The attribute is added to anchor tags as <a href="url" rel="ugc"> and tells search engines to treat the link differently from editorial links when calculating ranking signals.
Why It Matters
For B2B SaaS companies that operate community forums, knowledge bases with user contributions, or blogs with comment sections, rel=ugc is a critical technical SEO element. Without proper attribution, user-generated links can create two problems: they may pass PageRank to low-quality or irrelevant destinations (diluting the site's link equity), and they may attract spammers who exploit the site to build backlinks.
Proper rel=ugc implementation protects the site's link profile integrity while maintaining the user experience. Community members can still share links — but search engines understand those links were not editorially vetted by the site owner.
How It Works
rel=ugc is implemented at the HTML level and can be applied through several mechanisms:
-
CMS-level automation — Most modern CMS platforms (WordPress, Discourse, community forum software) can be configured to automatically add rel=ugc to all links posted by users. This is the most reliable approach because it removes the need for manual link attribute management.
-
Manual implementation — For custom-built platforms, developers add the attribute to any anchor tags rendered from user-submitted content. The implementation is straightforward:
<a href="https://example.com" rel="ugc">Example</a>. -
Combined attributes — rel=ugc can be combined with other link attributes.
rel="ugc nofollow"applies both the UGC signal and the nofollow directive.rel="ugc sponsored"would indicate a paid link within user-generated content (less common but valid). -
Google's treatment — Google treats rel=ugc as a hint rather than a directive. This means Google may still choose to crawl, index, or even count the link for ranking purposes if the algorithm determines it is valuable. However, the attribute gives Google the signal it needs to distinguish editorial links from user-placed links in its quality assessments.
The key distinction between rel=ugc and rel=nofollow is specificity. rel=nofollow says "I don't vouch for this link" without explaining why. rel=ugc says "this link was placed by a user, not by the site's editorial team" — giving search engines more contextual information for their algorithms.
rel=ugc and SEO/AEO
Proper link attribute implementation is a foundational element of technical SEO that protects domain authority and link profile quality. At xeo.works, we help B2B SaaS companies audit their technical SEO infrastructure — including link attribute usage, user-generated content policies, and internal linking architecture — to ensure every signal sent to search engines is intentional and accurate.