100%防SPAM WordPress Plugin - Andy Spam Checker
100%防SPAM WordPress Plugin - Andy Spam Checker1.0
Plugin Name: Andy Spam Checker
Plugin URI: http://www.21andy.com/blog/
Description: This plugin can prevent spam from automated bots. For example, you can see <a href="http://www.21andy.com/blog/">here</a>
Author: Andy Tse
Version: 1.1
Author URI: http://www.21andy.com/blog/
UPDATE:
2008-02-13 Version 1.1
修正admin发评论时也会被审的bug
这个插件有点拿不出手, 很小, 别嫌弃.
但是效果却顶瓜瓜的! 可以100%防住SPAM垃圾评论, 原理就是
- 用户名不可以含有域名后缀
- 不能填website字段
- 评论内容不能含有域名或链接
这样, 用户在发表评论的时候, 不能填自己的主页了, 填了会被过滤掉整个评论.我这个小插件是以牺牲功能为代价的.
我的过滤方法好像有点过份严格了, 不过已经不会出现有效链接或链接文本.用户在发评论时可以用空格放在url的域名里,可以跳过过滤.
虽然WordPress里,用户发表评论的url字段会被加上nofollow属性, 但是全世界还是有很多人,无时不刻在群发, 就为了这个nofollow的href
== Andy Spam Checker ==
Plugin URI: http://www.21andy.com/blog/
Description: This plugin can prevent spam from automated bots.
Author: Andy Tse
Version: 1.1
Author URI: http://www.21andy.com/blog/
== Change log ==
2008-02-12 Version 1.0
This plugin born.
2008-02-13 Version 1.1
Fix bug : admin post comment
== Description ==
This plugin can prevent spam from automated bots.
For example, you can see http://www.21andy.com/blog/
== Installation ==
1. Download the andy-spam-check.zip file to your local machine.
2. Unzip the file
3. Upload "andy-spam-check" folder to the "/wp-content/plugins/" directory
4. Activate the plugin through the 'Plugins' menu in WordPress
5. Remove the name="url" <input> html code from "comments.php" in "/wp-content/themes/YOUR THEME" directory
like this:
------------------------------------------------------------------------
CHANGE :
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
TO :
<!--
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
-->
OK! That's it.
enjoy!
Tags: spam, wordpress plugin, wordpress插件
挺好啊,我用上了,最近垃圾留言太多了。
andy能不能推荐下如何在wp里调用本站里的图片?
Reply
不太明白你说的调用
如果是上传,有2个方法
1.后台发表文章时上传
2.用windows live writer发表图片,会自动上传.
如果是新发的文章要引用已经发表过的文章里的图片
1.可以在发表文章时,upload栏里,可以browse选以前的
2.可以装个图集插件,去官方插件目录搜索Gallery
Reply
搞定了,找到个插件不错。谢谢!
另:这个插件是利害,今天一个spam都没有了。但自己也发不了网址了
Reply
请重新下载,已经修正这个BUG
试一下能发不 http://www.21andy.com
Reply
忘了来回复下了,能发了。谢谢!!
Reply
太强悍了,我很赞同你的想法,但是,这个恐怕不可行
Reply