Learn · Technical SEO · Beginner

How to keep spam out of pages that visitors can submit to

Learn to list every place visitors can add content, apply the deterrents Google documents, and check them.

Published
Last fact checked
Time
45 minutes to do

What user-generated spam is

User-generated spam is spammy content added to your site by visitors through a place meant for their content, such as a comment box, a question form or a profile. Site owners are often unaware of it.

This guide shows you how to list those places, apply the deterrents Google documents, and check they work. It suits any site with a form that publishes what visitors type, whether the site is large or small, and it needs no special software beyond the tools your site already has.

Why Google expects owners to prevent it

Google’s spam policies name user-generated spam, and its guidance says spammers take advantage of open forms on unsuspecting sites. It also says preventing abuse is usually not hard. See the spam policies and its guidance on preventing user-generated spam.

What you need to keep spam out of submission pages

  • A list of the forms and comment areas on your site
  • Access to how your site publishes submissions, such as a moderation screen in your CMS
  • Access to your page source to check meta tags and link attributes
  • Search Console access, to use the URL Inspection tool

Keep spam out of submission pages, step by step

  1. 1

    List where visitors can add content

    Write down every comment box, question form, review area and profile page, and what happens to a submission afterwards: whether it appears at once, waits for a person, or is sent somewhere else. Include forms you rarely think about, such as a contact form that publishes replies.

    You will know it worked when You have a list with what happens to each submission.

  2. 2

    Publish an abuse policy

    Google advises a clear abuse policy, communicated to users, for example next to the form. It also advises letting trusted users report content they think is spam.

    You will know it worked when Each form has a visible policy and a way to report.

  3. 3

    Qualify links in submitted content

    Google recommends marking links in user-generated content with rel="ugc" and says nofollow is also an option for untrusted content. View the source of a published submission containing a link. See qualifying outbound links.

    You will know it worked when A link in submitted content carries ugc or nofollow in the page source.

  4. 4

    Hold new contributions for review

    Google says manual approval can decrease spam considerably, with some overhead. It also suggests a noindex meta tag on posts from new users with no reputation. Check your CMS for a setting that holds submissions until approved.

    You will know it worked when A test submission waits for approval, or carries noindex until it is approved.

  5. 5

    Check noindex is visible to Google

    For a page that carries noindex, Google says it must not be blocked by robots.txt, or the rule is never seen. Check robots.txt and inspect the address with URL Inspection. See the noindex documentation.

    You will know it worked when The page is crawlable and the tool shows the noindex rule.

  6. 6

    Add a human check to each form

    Google suggests a challenge such as reCAPTCHA or similar verification to allow only human submissions.

    You will know it worked when Each form asks for a human check before it accepts a submission.

  7. 7

    Monitor on a schedule

    Google suggests the site: search operator or Google Alerts for spammy words, and watching server logs for sudden spikes. Set a regular day to look, write down what you check, and ban the source of any spam you find. Google says that once you find one spammy profile, it should be simple to remove others from the same source.

    You will know it worked when You have a calendar entry and a note of what you look at.

Common mistakes with submission pages and spam

  • Blocking a noindex page in robots.txt, so Google never sees the rule.
  • Qualifying links in comments but forgetting questions and story forms.
  • Treating moderation as set once and forgotten.
  • Assuming a small site will not be targeted.

Terms used when preventing user-generated spam

User-generated spam
Spammy content added to a site by users through a channel meant for user content.
Moderation
Reviewing what visitors submit before, or soon after, it is published.
Abuse policy
A published statement of what users may not post.

Sources for preventing user-generated spam

A form on your site attracting spam?

Send Dean the page and what the form publishes. A reply from Dean is how it starts, not a sales sequence.