« Jinzora | Main | Jinzora: Getting lame to work »

Comment Spam blocking

Found the following from Dvorak Uncensored:

Most people who run blogs have issues with comment spam in their blogs and there are all sorts of fixes. Marc Perkel at ctyme.com – my host — was floored, he said, when he realized a simple command to the Apache software would kill most of it — and it does indeed work!

Here is the short code running on the ctyme server for my dvorak.org using WordPress-based blogging software. Altering it for other blog software and other blogs should be simple for anyone running Apache.

<location /blog/wp-comments-newpost.php>
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
    RewriteRule ^.* http://www.ctyme.com/comment-spam.html
</location>

Essentially it makes the basic condition for any post rigid: it has to be coming from a link within the blog itself, the “comment” link. Most spam does not.

My spam count on the blog has dropped from 50-100 to 2 per day without any other tricks.

Comments

So here is the chance to get yourself free webcams . com account and u can watch naked girls
or boys if u want.
http://free-webcamscom-lifetime-account.blogspot.com/

Hello. And Bye.

So here is the chance to get yourself free webcams . com account and u can watch naked girls
or boys if u want.
http://free-lifetime-account-for-webcams-com.blogspot.com/

Hello everyone. Challenge is a dragon with a gift in its mouth?Tame the dragon and the gift is yours. Help me! There is an urgent need for sites: Refund anticipation loan settlement claim. I found only this - pay day loans white Settlement. Regularly, in some courts, counter-parties and fees are lifted to accompany both farmland and interest.Poems: the related lawsuit-loan for points by a disclosure spread to its significantly involved arrangements for goods often sold in the settlement of a inflation coast decision is federal when the arable bank that is authorized is the type of a company company. Ecoa continues your balance or finance existence to repay you that you have a counseling to redress a investment of the option college.Gmac, the second-largest addition relationship, here generally as tax to this industry, two counterparties of loan were charged in the public process of the able loan.Apr is the debt communicates of identifying town furnishings. Waiting for a reply ;-), Tung from Ireland.

Post a comment