关于Spam留言的对策

| 评论(2) | 暂无引用通告

从对引用的Spam进行了彻底的三板斧政策之后,引用的Spam就再也没有光临过了。但是留言的Spam又开始了泛滥,让我不得不去招架它几招。

看到OUi-BLOG 3.0介绍的Keystroke Plugin,试着安装了一下,效果很好,也推荐到这里。

下载keystrokes-0.1.5.zip之后,将解冻后的两个文件分别安装到你的MT里面的

MT/plugins/keystrokes.pl

MT/php/plugins/function.MTKeystrokes.php

然后在单篇日记归档的3个地方追加下面的红色字样即可。

・・・・・・

<MTEntryIfCommentsOpen> 
<form method="post" action="<$MTCGIPath$><$MTCommentScript$>" 
name="comments_form" onsubmit="if (this.bakecookie.checked) rememberMe(this)">
<$MTKeystrokes$>
<input type="hidden" name="static" value="1" />

・・・・・・

<p id="comments-open-text">
<label for="comment-text">评论: <MTIfAllowCommentHTML>(你可以使用 HTML 标签设置风格)</MTIfAllowCommentHTML></label>
<textarea id="comment-text" name="text" rows="15" 
cols="50" onkeypress="keystrokes(this.form)" ></textarea>
</p>

<div id="comments-open-footer" class="comments-open-footer">
<input type="submit" accesskey="v" name="preview" id="comment-preview" value="预览" />
<input type="submit" accesskey="s" onclick="keystrokes(this.form)" name="post" 
id="comment-post" value="发表"/>
</div>

・・・・・・

修改完以后再重建一下你的MT就可以了。

暂无引用通告

发送引用通告网址: http://www.ikias.com/mt-tb.cgi/203
如果您想引用这篇日记到您的Blog,请复制上面的链接,放置到您发表文章时的相应界面中。

评论(2)

解冻是解压缩的意思吗?
上传到相应的文件夹后,需要在blog后台的插件管理处做什么吗?
不好意思,我一直不懂得怎么安装新插件

>>1 Dear asiapan :
将压缩文件展开以后,按照上面的说明放到相关的文件夹里就可以了。

发表评论

关于此日记

此日记由 ikias 发表于 2006年12月27日 07:51

此Blog上的上一篇日记利用del.icio.us的Tags在MT里显示相关文章的方法

此Blog上的下一篇日记[toread]服务, 过后再读

首页归档页可以看到最新的日记和所有日记。