# Comment spam

Category: [On-Page & Content](https://seo-geo-glossary.com/en/glossary/category/on-page-content/) › [Content quality](https://seo-geo-glossary.com/en/glossary/category/on-page-content/content-quality/) · Also known as: blog comment spam

**Comment spam** is unwanted posts under articles or in forums, usually generated automatically and carrying links to other sites. Google counts it as user-generated spam, meaning spam that users leave on a site through a channel the site provides.

## Why does it matter for SEO?

The spam text and its links end up in the HTML of your own pages. Google's spam policies name comment spam on blogs among the examples of user-generated spam and point site owners to tips on preventing abuse.

## Marking links in comments

For links in comments and forum posts, Google recommends the `ugc` value of the `rel` attribute. It can be combined with `nofollow`. Contributors with a long record of good posts may be exempted if the site owner wants to reward them.

```html
<a href="https://example.com/" rel="ugc nofollow">my blog</a>
```

## Common measures

According to reports from blog platforms and blogging guides, these measures are common:

- approve comments before they appear
- use a spam filter or CAPTCHA
- block known spam email addresses
- remove the website URL field from the comment form

## FAQ

**Does nofollow stop comment spam?** It labels the links. The spam posts still arrive, so moderation and filters are needed.

## Related terms

- [Hacked site](https://seo-geo-glossary.com/en/glossary/hacked-site/index.md)
- [Link spam](https://seo-geo-glossary.com/en/glossary/link-spam/index.md)
- [Spam update](https://seo-geo-glossary.com/en/glossary/spam-update/index.md)
- [User-generated spam](https://seo-geo-glossary.com/en/glossary/user-generated-spam/index.md)
- [rel="ugc"](https://seo-geo-glossary.com/en/glossary/rel-ugc/index.md)
- [User-generated content](https://seo-geo-glossary.com/en/glossary/user-generated-content/index.md)

## Sources

- [Spam policies for Google web search (user-generated spam) – Google Search Central](https://developers.google.com/search/docs/essentials/spam-policies)
- [Qualify your outbound links to Google – Google Search Central](https://developers.google.com/search/docs/crawling-indexing/qualify-outbound-links)
- [How to recognize comment spam – Jetpack (secondary)](https://jetpack.com/resources/how-to-recognize-comment-spam-and-give-it-the-boot/)

---

Last updated: October 7, 2026
URL: https://seo-geo-glossary.com/en/glossary/comment-spam/
