« MT4iバージョンアップ | メイン | 投稿記事表示数 »
February 25, 2007
コメントスパム対策
最近コメントスパムが多いので対策を行いました。しばらく様子見することにします。
mt-comments.cgiのeval内、require MT::App::Comments;以下にrequire CGI;
my $q = CGI->new;
my $txt = $q->param('text');
if(($txt ne "") && ($txt !~ m/[\x80-\xff]/)){die('error')};
投稿者 hare : February 25, 2007 12:40 AM
トラックバック
このエントリーのトラックバックURL:
http://cc.blogdns.com/cgi-bin/mt/mt-tb.cgi/184