Blog Comment Spam Fix
Listening to the
this WEEK in TECH
podcast I heared John Dvorak talk about a
fix
for blog comment spam. The fix discovered by Marc Perkel at
ctyme.com
uses the Apache rewrite engine to check the validity of the referer field:
< location /blog/wp-comments-newpost.php >
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
RewriteRule ^.* http://www.ctyme.com/comment-spam.html
< /location >
That might work for a while, but it shouldn't take comment spammers long to fake the
referer field
as they do for referer spam.


