Skip to content
WJunction - Webmaster Forum

Wordpress - How to block Spam Comments?

Status
Not open for further replies.
hello there,
i have a little problem with my wordpress comment, well it seems that there is a spamming of comments that are being sent to some of my particular wordpress topics...about products, medicine and so on.

Its very disturbing as yesterday within 30 minutes more that 150 of these comments was sent to my blog!!:'(

So does anyone knows how to prevent these|?:facepalm:
 

30 comments

I suggest you install a plugin like NoSpamNX or Antispambee don't use Askimet whichs comes with wordpress it's not really helpful ;)
 
Akismet is the solution, I also add this on the .htaccess file.

Code:
# Protect from spam comments
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*www.yoursite.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
 
Status
Not open for further replies.

About the author

D
Banned · Joined
494
Messages
5
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom