John Sinteur, the Plug-In-Code from Mark J.
Version: 0.1
Author: John Sinteur/Mark J.
Author URI: http://wordpress.org/
*/
function check_for_open_proxy($comment_text) {
$spammer_ip = $_SERVER['REMOTE_ADDR'];
list($a, $b, $c, $d) = split('.', $spammer_ip);
if( checkdnsrr("$d.$c.$b.$a.list.dsbl.org") ) {
header( "Location: http://dsbl.org/listing?".$spammer_ip);
exit();
// $comment_text = $comment_text . "
\n Posted from an Open Proxy";
}
return $comment_text;
}
add_action('post_comment_text', 'check_for_open_proxy', 1);
?>