Skip to content
24/7 support · 7-day money-back guarantee · Free plan, no card neededSee plans

Blog › WordPress SEO ›

WordPress comment spam and SEO: protect your site from link junk

Cover image: WordPress comment spam and SEO: protect your site from link junk

Open comments are a gift to spammers. Left alone, they can fill your posts with links to unrelated and sometimes harmful sites, slow your database and make your pages look neglected. For search engines, a page full of spam links is a quality problem. A few settings and habits prevent most of it.

Why it matters for SEO

Search engines evaluate the whole page, including user-generated content. Spammy outbound links can be seen as a sign of low quality, and they may lead visitors to dangerous sites. If a significant part of your pages is spam, it can erode trust in your site.

Prevent it

Use an anti-spam service or plugin, and require comment moderation for first-time commenters. In the WordPress discussion settings, you can hold comments that contain more than a set number of links and add terms that should always be flagged. Consider requiring name and email, and closing comments on older posts, where spam often lands unnoticed.

Control the links

WordPress adds a nofollow attribute to links in comment author fields by default, which tells search engines not to pass authority. Keep this behavior. UGC and nofollow attributes help signal that links are user-submitted rather than endorsed by you.

Moderate regularly

Check the queue weekly and delete spam in bulk. Approve only genuine comments, and reply to good ones, since real discussion can add value. If a post gets too much spam, close comments on it.

Consider alternatives

If you do not receive or want comments, turn them off site-wide in the discussion settings and remove comment forms from page templates. Many business sites do not need them. Also disable comments on attachment pages and on pages where they make no sense.

Clean up the past

Search your site for suspicious outbound links using the link report. SEOStrive lists external links per post, which helps you spot unexpected domains. Remove spam comments and, if your database is cluttered, clear them out.

Watch for related hacks

Spam can also appear when a site is compromised. If you see links you did not add, hidden text or odd pages, check for malware, update everything and change passwords.

Keep a routine

Review settings after each major WordPress update and monitor your pages for new spam. A periodic site audit will reveal suspicious links and low-quality pages before they cause lasting problems.

Frequently asked questions

Should I disable comments? If you do not use them, yes. It removes the spam problem entirely.

Does nofollow stop spam? It reduces the SEO benefit of spam links, but spam still harms experience.

Can I clean old spam in bulk? Yes, from the comments screen. Review first.

Keep reading

Comments

Leave a comment

Check your own site

Run a free audit and see what to fix first.

Run a free audit