New spam-control trick
-
I’ve found that most comment spam comes from http-proxies these days. Specifically, from proxies that are already known from sending email spam, and are listed on the blacklists of dsbl.org.
So I’ve added the following small piece of code to the “check_comment” function in functions.php. I’d love to see a plugin-hook in a future version of wordpress for this kind of thing…
$spammer_ip = $_SERVER['REMOTE_ADDR'];
list($a, $b, $c, $d) = split('.', $spammer_ip);if( checkdnsrr("$d.$c.$b.$a.list.dsbl.org") ) {
header( "Location: https://dsbl.org/listing?".$spammer_ip);
return false;
}
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘New spam-control trick’ is closed to new replies.