« They Want Your World of Warcraft PasswordMicrosoft Totally One-Ups Me After Eight Years »

Blog spam reduction

12/16/10

  01:12:09 pm, by Nimble   , 211 words  
Categories: Spamming

Blog spam reduction

UPDATE: No, it slows them down but it does not stop them. I am going to have to put up with it in the short term and trying to dig into B2Evolution's code again at some point. F-ing jerk-ass spammers.


The comment spam was really picking up this season: 10, 20, 30 a day. I looked at adding my own field to the comment posting, but unlike the code for the forums (mwForum), with the blogging software, it seems comparatively hard to figure out how to code such a feature.

The technique from here seems to work. I did the first three steps, but it seemed that the first two were insufficient to stop the spam.

What worked at last - and I cannot say for sure whether renaming the htsrv directory helped or not - was following step number three: adding the following to the .htaccess in the root directory of the blog domain.

# Fix for comments 
RewriteEngine On 
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net/.*$ [NC] 
RewriteCond %{REQUEST_URI} ^.*comment_post\.php$ 
RewriteRule .* - [F]

So far, it seems to be keeping me safe. It has been a few days now with no comment spam at all.

I don't feel safe enough to turn the comment moderation off anytime soon, but that is a future possibility if this comment spam fortification holds :)

No feedback yet