Combat Spam Comments With .htaccess

I’ve already tried of spam comments. Then I googled a way to combat it.┬áBy disabling Direct Access to wp-comments-post.php with .htaccess , it may prevent some autobots sending spam comments to my blog. Here is the code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post.php* RewriteCond %{HTTP_REFERER} !.*yourdomainname.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule […]