stop wordpress page comment spam

Page spam (not posts, but specifically “pages”) is out of control. Usually when I see a pattern like this, I’m not the only one experiencing it. So here is how to stop the seo spammers from adding comments to pages on your wordpress site. Because even if the spam filter stops them, you still have to clean that junk out.

  1. Login to your wordpress blog
  2. Hover over “Theme” and select “Editor” from the flyout menu
  3. Look for the “page.php” template on the lower right hand side.
  4. Remove this block of code and update.
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) {
       comments_template();
    }

Move on down the road page-spam free.