Discuz评论系统的垃圾信息过滤真是头疼,WP的Akismet虽然好用但是要钱,自己写个简单的吧...
function spam_filter($comment) {
$keywords = ;
foreach($keywords as $word) {
if(strpos($comment, $word)) return false;
}
return true;
} 哈哈,简单粗暴先用着
登录/注册