100%防SPAM WordPress Plugin - Andy Spam Checker
02月 13th, 2008 . by 土坷垃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.
Author: Andy Tse
Version: 1.0
Download andy-spam-check10.zip
这个插件有点拿不出手, 很小, 别嫌弃.
但是效果却顶瓜瓜的! 可以100%防住SPAM垃圾评论, 原理就是
- 用户名不可以含有域名后缀
- 不能填website字段
- 评论内容不能含有域名或链接
这样, 用户在发表评论的时候, 不能填自己的主页了, 填了会被过滤掉整个评论.我这个小插件是以牺牲功能为代价的.
我的过滤方法好像有点过份严格了, 不过已经不会出现有效链接或链接文本.用户在发评论时可以用空格放在url的域名里,可以跳过过滤.
虽然WordPress里,用户发表评论的url字段会被加上nofollow属性, 但是全世界还是有很多人,无时不刻在群发, 就为了这个nofollow的href
== Andy Spam Checker ==
Version: 1.0
Plugin URI: http://www.21andy.com/blog/
Description: This plugin can prevent spam from automated bots.
Author: Andy Tse
Version: 1.0
Author URI: http://www.21andy.com/blog/
== 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!