This works for me. Here’s the movable type example:
Location /mt/mtcomments.cgi
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^.*marc.perkel.com/.*
RewriteRule ^.*http://www.ctyme.com/comment-spam.html
/Location
And for Wordpress Blogs:
Location /blog/wp-comments-newpost.php
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
RewriteRule ^.* http://www.ctyme.com/comment-spam.html
/Location
The way it works is - if the referring link isn’t local - you don’t ge to leave a comment. Am I the first one who thought of this?





2 users commented in " Beating Blog Comment Spam "
Follow-up comment rss or Leave a TrackbackActually, HTTP_REFERER is set by the client, so this can easily be spoofed. I guess you’ll block those comment spammers that don’t bother to spoof the referrer.
Really great idea! I’ll try to use it in my blog.