Reducing Comment Spam
-
Hi all,
I’ve come up with a quick solution to greatly reduce spam. I’ve noticed that a lot of it has the referer 12.163.72.13. Obviously this site contains a hugggee list of WordPress site URLs so the spammers can just point their script at it and spam the world. (This site cannot be accessed by the likes of you and me; presumably they only allow access to spammer IPs).
I reckon about 99% of my comment spam is posted with a referer from that site.
So here’s the solution. Add the following lines to a .htaccess file in your WordPress directory:
SetEnvIfNoCase Referer “^https://12\.163\.72\.13/” bad_referer=1
deny from env=bad_referer
[SetEnv and bad_referer=1 should be on the same line]
Of course this is yet another temporary solution. Eventually they’ll change the IP of their site… but every little helps.
- The topic ‘Reducing Comment Spam’ is closed to new replies.