スパム対策として、とりあえず poker という文字列が author に入っているものが98%くらいなような気がするので、対策をとってみた。$WORDPRESS/wp-trackback.php
のif(check_comment(…)) の近くのところへ次のような感じで挿入してみた。
if(check_comment($author, $email, $url, $comment, $user_ip)) {
$approved = 1;
} else {
$approved = 0;
}
$approved = 1;
} else {
$approved = 0;
}
if (ereg(“poker”, $author)) {
die (“There is an error with the wordpress, it can’t store your comment…<br />Please contact the webmaster.”);
}