Skip to main content
6 of 6
deleted 12 characters in body
Brad Dalton
  • 7k
  • 2
  • 36
  • 47

I also use Akismet but rarely does a spam comment get thru.

This is what i do.

1. If you remove the website url field from your comment form, you'll find this will reduce both automated and manual spam comments as spammers are only interested in leaving links. You can do this by installing a plugin or using code.

2. I also removed the comment form allowed tags because they include the word email which spam bots are programmed to look for. You can do this by installing a plugin or using code.

3. Configure Discussion settings correctly. I would disable trackbacks and also set comment author must have at least one approved comment. All comments must be approved by an administrator.

You can also configure your settings so only one link is allowed however its better to not allow any unless manually approved.

Comment spam has never been a problem for me except when Akismet stopped working sometimes which isn't very often and doesn't last long but you will know about it when it happens.

enter image description here

Here's the code you can paste at the end of your child themes functions.php file to remove the website url field from your comment form:

function remove_website_url_field_comment_form($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','remove_website_url_field_comment_form');

Here's the code you can paste at the end of your child themes functions.php file to remove comment form allowed tags:

add_filter( 'comment_form_defaults', 'wpsites_remove_comment_form_allowed_tags' );

function wpsites_remove_comment_form_allowed_tags( $defaults ) {

$defaults['comment_notes_after'] = '';

return $defaults;

}
Brad Dalton
  • 7k
  • 2
  • 36
  • 47