Protected by RightComments Badge
Drop a public spam-blocked badge anywhere on your WordPress site with a single shortcode.
The RightComments plugin includes a shortcode that renders a small "Protected by RightComments" badge with a live count of how many spam comments your site has blocked.
Basic usage
Paste this shortcode into any post, page, sidebar widget, or theme template that accepts shortcodes:
You'll see something like:
๐ก Protected by RightComments ยท 1,247 spam blocked
The number is your site's total spam count from the WordPress comment store, cached for an hour so it doesn't query the database on every page view.
Hide the count
If you just want the badge without a number:
Renders:
๐ก Protected by RightComments
Where to put it
Common placements:
- Footer widget โ appears on every page
- Below the comment form โ reassures real commenters that there's spam protection
- About page โ shows readers you take comment quality seriously
Styling
The badge ships with inline styles so it works in any theme. If you want to customize the look, target the .rightcomments-badge class in your theme's stylesheet โ the styles are inline but you can override them with !important or by specifying higher selector specificity.
What does the link go to?
โ opens in a new tab with a UTM tag (utm_source=wp-badge) so we can see traffic from badges, but it's a normal external link otherwise.