The UGC attribute is an HTML attribute that you add to links posted by users, such as in comments, forum posts or reviews. You write it as rel="ugc" in the anchor tag. The signal tells Google and other search engines that you, as the site owner, did not create this link yourself and therefore do not vouch for it. This protects you from negative SEO effects of spam links that users might post. For SMEs with a blog, forum or review system, this is a practical way to keep your link profile clean without having to manually check all user-generated content.
How the UGC attribute works technically
Het UGC attribute is onderdeel van de link attribute-standaarden die Google in 2019 heeft geïntroduceerd. Je plaatst het in de <a>-tag van een link, bijvoorbeeld: <a href="https://example.com" rel="ugc">Linktext</a>. Je kunt het combineren met andere attributen zoals nofollow door ze te scheiden met een spatie: rel="ugc nofollow". De meeste moderne CMS-systemen zoals WordPress voegen het UGC attribute automatisch toe aan links in reacties. Als je een custom oplossing hebt, moet je het zelf implementeren in de template die user-generated content rendert. Het attribuut heeft geen invloed op de gebruikerservaring, alleen op hoe zoekmachines de link interpreteren.
Why Google introduced the UGC attribute
Before 2019, webmasters used the nofollow attribute for all links they did not trust, including ads, paid links and user-generated content. Google wanted more nuance to better understand the nature of links. The UGC attribute provides context: this link is from a user, not an editor. That helps Google distinguish legitimate discussions and reviews from spam. For you as a site owner, it means you won't be penalized for links that spammers post in your comments section. At the same time, Google can factor valuable user-generated content such as authentic reviews into rankings because the signal is clearer than a generic nofollow.
What the UGC attribute brings to your website
If you run a blog, knowledge base or ecommerce store with reviews, the UGC attribute protects your link profile from spam without having to disable all comments. You can let users comment and link to resources while signaling to Google that you do not endorse these links. This is especially relevant if you get a lot of comments or have an active community. In practice, we see with SME clients that a thoughtful SEO strategy includes technical details such as link attributes. It prevents you from having to manually moderate every forum post for malicious links. For ecommerce stores with product reviews, it ensures that customers can freely link to their own photos or experiences without you running SEO risk.