A-A+

wordpress插件验证码对付讨厌的垃圾评论

2009年02月17日 WordPress 评论 1 条 阅读 1 次

大家都不会喜欢spambot(垃圾机器人)所张贴垃圾评论。你知道,那些大都是宣传广告的垃圾链,本站换wordpress没有多久,但是超过400条每天要处理几十条垃圾评论已经搞得我很烦了。现在也有不少对付博客垃圾评论的插件,并且他们通常是在两个方式: 一种是过滤器和识别垃圾评论额和另一种是把随机字显示为图像,用以阻止spambots无法识别您的随机图像。您可以使用这两个方式对付垃圾评论过滤器联合使用。当然还有第三种可选择的办法,就是您可以重新命名您的评论和trackback(引用)文件,以减少服务器为了处理spambots(垃圾机器人)而过载 。

无论如何,我已经找到了自己认为不错的反垃圾邮件图像插件。除了图形显示以外,点击图形还可听到对应字母读音,这当然是锦上添花了。您可以测试它的功能并发表评论关于这个插件的建议和意见。

这个插件是根据Krazy Nio开发的反垃圾邮件图像(现在网上已不能再找到该网址)基础上做的一些改进,这些过程学到了PHP教程所学不到的。

值得夸赞的一点他的一些设置在Custom Anti-Spam里面除了对垃圾词的定义可控制垃圾评论以外,还有对于已经登录用户的人文关怀,就是可以不用繁琐的输入验证码了,在 Customize settings的如下提示里选择No后,已经登录的用户可以不用在过验证码关了。这点很好,很强大!!

Force registered users to enter the anti-spam word

下载地址:

 

Download site 1 | Download site 2 | Download site 3 (可任选其中之一的地址下载)

中文翻译版

对于 3.0.4 和以上的, 只需把下面的文件解压到相应插件目录覆盖原英文文件即可:

 
以下是原文:
Version 3.1.3: Peter’s Custom Anti-Spam Image Plugin for WordPress Share on Facebook

Other variations

———————–

I really dislike spambot posts. You know, the ones that advertise jumbled links. There are quite a few plugins to combat blog comment spam, and they usually come in two varieties: one that filters and identifies spam posts and another that forces users to identify a random word displayed as an image in order to block spambots that cannot read your image. You can use both varieties of spam filters in tandem. There’s even a third option where you can rename your comment and trackback files in order to reduce the server load from spambots.

At any rate, I’ve developed my own anti-spam image plugin. You can test it by leaving a comment on this site.

My plugin is based on Anti-Spam Image by Krazy Nio (which I can no longer locate) and I also used some code that I learned from what I like to call the best PHP tutorial ever.

Features

  • Toggle whether registered users need to enter the word
  • Random font display
  • No cookies required
  • No JavaScript required
  • Auto-generated audio for visually impaired users
  • Easy-to-read
  • No mapping of words from the code — words are used once or removed after 24 hours
  • Reminder of what was entered if you get the word wrong
  • Selective blocking of trackbacks, pingbacks
  • Easy to translate

Negatives

  • Purposely no obscuring techniques so that the anti-spam word is easy to read
  • The more people who use this plugin, the more motivation for spambots to target it

Requirements

  • GD Library and FreeType Library (There’s a diagnostic page at Manage > Custom Anti-Spam in your WordPress admin panel to tell you whether you have them installed. If needed, just ask your web host to install them!)
  • WordPress 2.0 or higher (although that was released almost two years ago)

That being said…

Version 3.1.3 of Peter’s Custom Anti-Spam Image Plugin for WordPress [December 10, 2008: Minor tweak to the automatic JavaScript positioning to account for labels for the comment textarea (thanks Midwestern City Boy!).]

Download site 1 | Download site 2 | Download site 3 (pick any of the download options)

Translations

For version 3.0.4 and up, extract these files over an existing English plugin install:

View all past versions

Instructions:
2.0+ releases:
Unzip the entire folder custom-anti-spam to your plugins directory, so that the path is wp-content/plugins/custom-anti-spam/. Then activate the plugin via your WordPress admin section. The plugin should work directly “out of the box”, but all settings can be customized in the Settings > Custom anti-spam page in your WordPress control panel (3.1.0 and up) or in the plugin file itself (3.0.7 and lower). If you are upgrading from a previous release, de-activate that release first.

Note: it is not recommended to use the WordPress automatic plugin upgrade on this plugin. Instead, download and extract the plugin manually from this page or from the WordPress plugin page.

Here’s a brief outline on how to do the manual insert.

Check the archive page for pre-2.0 instructions.

Common issues

- Keep the words short (7-8 letters max).
- Make sure you upload the .ttf files in binary, not ASCII format.
- After initializing the plugin, log out of Wordpress to test it. By default registered users don’t have to enter the anti-spam word (although this can be changed in the settings at the top of the plugin file).
- If you have a funky theme, you might want to tweak the code to display optimally. For example, with the In Business theme, try copying and pasting the default comments.php code over In Business’s comments.php; for the Blix theme, check this out.
- Check the diagnostic page at Settings > Custom Anti-Spam in your WordPress admin panel to see any possible problems.
- Getting a database error after installing? You might have to create the tables manually. See this forum post for details.
- Are you using WordPress 2.6 or higher and did you move wp-config.php or the wp-content folder to a non-default location? Upgrade to version 3.0.7 of the plugin or higher and configure the $cas_wpconfig setting in the plugin file itself.

Plugin upkeep

For best continuing anti-spam performance:

- Change up the anti-spam words every once in a while
- Change up the fonts every once in a while

————————

Please make all comments and questions regarding the plugin in the forum! The number of comments were getting to be a bit hard to follow, so the forum should help with organization. Old comments are on the history page.

Note: you can still test the plugin using the comment form on this page. However, all comments are deleted once daily.

Forum for Peter’s Custom Anti-Spam Image

Forum/Topic Started Last Post Posts
Peter’s Custom Anti-Spam for WordPress
Translate in French
February 4, 2009-8:10 pm     

by Guiberube 

February 5, 2009-2:54 pm     

by Peter 

2
Peter’s Custom Anti-Spam for WordPress
Some suggestions
November 18, 2008-12:02 pm     

by Dave 

January 3, 2009-4:06 pm     

by Peter 

4
Peter’s Custom Anti-Spam for WordPress
WP 2.7 + anti-spam 3.1.3: no images
December 27, 2008-10:57 am     

by graffi 

December 31, 2008-12:53 pm     

by Cherrie 

5
Peter’s Custom Anti-Spam for WordPress
IE7 Problem?
December 17, 2008-7:12 am     

by JOhn Connell 

December 17, 2008-11:18 am     

by Peter 

2
Peter’s Custom Anti-Spam for WordPress
Series of php errors
December 16, 2008-6:19 pm     

by Todd 

December 16, 2008-8:52 pm     

by Peter 

2

ShareThis

1 条留言  访客:0 条  博主:0 条

  1. ImLHY

给我留言取消回复

Copyright © 浩然东方 保留所有权利.   Theme  Ality 07032740

用户登录