Documentation updates · Oct 26, 2026 · 2 min read

How to prevent spam on your website's visitor posts

Google says stopping spam in comment forms and other visitor-created content is usually not hard, and even a simple challenge can deter spammers.

What it means for your Maryland business

To prevent spam on a website, put a barrier between strangers and publishing: approve comments before they appear, add a check such as reCAPTCHA to sign-up and comment forms, and mark links in visitor posts with nofollow or ugc, the rel attributes Google's guide recommends for links in untrusted content. Google's guide says even simple deterrents may discourage spammers. Spam risk comes with any Maryland business site that accepts public input: blogs with comments, community and member boards, review and testimonial forms, job and classified boards, and any tool that lets users create pages people can share.

A youth sports league in Howard County has a site that lets coaches create team pages and parents leave comments. Spammers find the open sign-up, create dozens of accounts and fill new pages with links to sketchy sites. The league can require approval for new accounts, add noindex to pages from users without a track record until they earn trust, and set team pages meant only for families to noindex by default, since those pages exist for sharing a link, not for search. Verifying the site in Search Console means email alerts if Google finds a security issue or takes a manual action, and checking the Page indexing report regularly can reveal an unexpected jump in indexed pages.

Leaving moderation off because it takes time invites trouble, as does deleting spam accounts one by one instead of banning the IP address they come from, or letting every user-made page be indexed. Google also suggests sanity checks: if nearly all your members live in central Maryland, a burst of overnight sign-ups from overseas addresses deserves a closer look. Check server logs for sudden traffic spikes, and use the site: operator to search your own domain for spam words.

What to do this week

3 steps. Ticks are saved to Your plan on this device.

Open Your plan

01
Turn on comment moderation and add reCAPTCHA or a similar check to any public sign-up or comment form.
02
Ask your web person to mark links in visitor posts with nofollow or ugc.
03
Verify your site in Search Console and watch the Page Indexing report for sudden jumps in indexed pages.

In Google's words

“When pages are created for direct sharing, collaboration, or utility rather than public search discovery, apply the noindex rule (using a robots meta tag or X-Robots-Tag HTTP response header) or block crawling in robots.txt by default.”

Google, exact quote · Prevent User-Generated Spam on Your Site · checked against this page 2026-11-28

What Google says

Google says stopping spam in comment forms and other visitor-created content is usually not hard, and even a simple challenge can deter spammers. Its guide recommends a clear abuse policy, user reporting, moderation, blocklists, reCAPTCHA-style checks, noindex on posts from new users, and nofollow or ugc on links in untrusted content. It also advises noindex or crawl blocking by default for pages created for direct sharing or collaboration rather than search, plus monitoring in Search Console for unexpected spikes.

Report an error