bcSpamBlock插件:防止垃圾留言

Posted on 十一月 3rd, 2007 in Blog | 2 Comments »

垃圾留言大多是由程序自动产生的,而bcSpamBlock插件就能有效的阻挡机器的留言,而使用浏览器的留言则感觉不到任何区别,若是禁止了javascript,则需要手工拷贝一个字符串。具体的原理请参考官方的说明。

而目前的1.1版本同时也阻挡了trackback和pingback,因此我进行了一些修改,使其不阻挡trackback和pingback。那如何防止pingback/trackback的垃圾呢?这就可以使用另外一个插件来进行处理:Simple Trackack Validation,同时要注意,这个插件默认只支持对trackback进行处理,我也作了简单地修改,使其能处理pingback。

效果:未使用bcSpamBlock插件之前,我每天将近有3000个spam留言,而使用了这个插件之后,到现在为止,一个漏网的都没有!

bcSpamBlock 1.1 modify by wlx
Simple Trackback Validation 2.1 wlx modified version

code markup插件的使用

Posted on 四月 2nd, 2007 in Linux | 1 Comment »

wordpress里默认是无法显示html部分内容的内容,需要使用第三方插件才可以显示,我这使用的是code markup插件。
若需要严格的HTML内容显示,应该这样使用:
<code allow="none">
具体的使用方法如下:
* <code> or <code allow="default"> allows common HTML tags to be rendered, and displays everything else exactly as written.
* <code allow="none"> displays content exactly as written — no markup allowed.
* <code allow="all"> renders content as HTML — all markup is allowed.
* <code allow="em strong a"> allows only <em>, <strong> and <a> tags to be rendered as HTML — everything else is displayed exactly as written. You can put whatever tags you like in the allow attribute, separated by spaces. As a special case, you can include the comment tag — this means that HTML comments <!-- like this --> will be “rendered” as normal HTML comments (i.e. not displayed).
* <code lang="html"> or
<code lang="xhtml"> displays content exactly as written, the same as <code allow="none">.

A very nice plugin to preserve html format

Posted on 四月 17th, 2005 in Blog | 1 Comment »

Thank you, I had searched this tool a long time and now find it.
It is very nice.

http://www.coffee2code.com/archives/2005/03/29/plugin-preserve-code-formatting/