wp-smart-honeypot WordPress plugin to reduce comment spam with a smarter honeypot. New…
- User
wp-smart-honeypot WordPress plugin to reduce comment spam with a smarter honeypot.
New Comment Template Required The trickiest thing here is make sure the comment form is done in the new style in your comment form. Since this plugin rearranges form fields, it requires the newer comment template. http://codex.wordpress.org/Function_Reference/comment_form
Trackback Spam The website still gets trackback spam. That's harder to figure out a solution, because a trackback is sort of meant to be done by computers. Really the only solution for trackback spam is to turn off trackbacks. This plugin is not intended to stop trackback spam.
Installation Go to the release page: https://github.com/freak3dot/wp-smart-honeypot/releases Download the latest zip file. Rename the zip file to wp-smart-honeypot.zip Go to your WordPress admin panel. Click on Plugin » Add New. Then click the upload tab. Browse for your wp-smart-honeypot.zip and click Install Now. Activate the plugin. Notes This plugin may include some form elements related to bootstrap. You may need to modify the PHP before using on your site. If you are not using WordPress and would like to see a PHP example of a honeypot form in use. See https://github.com/freak3dot/smart-honeypot/ Honeypot Concepts Random field names to make it difficult to programatically fill in the fields. Use one of the standard field names as the honeypot. I like to use "url". Because, what bot isn't trying to spam a url? Mix up the location of the honeypot in the form. Let's prevent bots from always ignoring the nth field. Expire the form after a certain amount of time. Let's keep bots from resubmitting the same form repeatedly. Hide the honeypot field from legitimate users via JavaScript or css. Use a clever clasname if you use css. Bots may readily avoid commone classes like "hide", "hidden", "honeypot".使用中文给我详细分析一下
- Assistant
根据您提供的信息,
wp-smart-honeypot是一个WordPress插件,用于通过更精巧的“蜜罐”技术减少评论垃圾。下面我将使用中文详细分析这个插件的一些关键点:新评论模板要求
该插件需要使用更新式的评论表单。它通过重新排列表单字段来实现其功能,因此与旧式的评论表单可能不兼容。WordPress提供了一个函数
comment_form用于生成表单,文档地址是:http://codex.wordpress.org/Function_Reference/comment_form跟踪回溯(trackback)垃圾信息
插件不是为了阻止跟踪回溯垃圾而设计的。因为跟踪回溯本质上是由计算机自动发送的。如果您的网站受到跟踪回溯垃圾信息的困扰,唯一的解决办法可能是关闭跟踪回溯功能。
安装方法
- 访问发布页面:https://github.com/freak3dot/wp-smart-honeypot/releases
- 下载最新的zip文件。
- 将下载的zip文件重命名为
wp-smart-honeypot.zip。 - 进入WordPress后台管理面板,点击“插件” » “添加新的”。然后点击上传标签页。
- 浏览你的
wp-smart-honeypot.zip文件并点击“现在安装”。 - 激活插件。
注意事项
这个插件可能包含一些与bootstrap相关的表单元素。如果您的站点不使用bootstrap,您可能需要修改PHP代码才能在您的网站上使用。
如果您不使用WordPress,但想看到一个PHP示例使用蜜罐表单,可以参考:https://github.com/freak3dot/smart-honeypot/
蜜罐(honeypot)概念
- 随机字段名:使得自动填写字段变得困难。
- 将一些标准字段名用作蜜罐:比如使用 "url" 字段,因为垃圾信息机器人一般都会尝试填写URL。
- 改变蜜罐在表单中的位置:防止机器人总是忽略某个固定顺序的字段。
- 表单过期时间:避免机器人重复提交相同的表单。
- 使用JavaScript或CSS对合法用户隐藏蜜罐字段:如果使用CSS隐藏,应该使用巧妙的类名。因为机器人可能会避免使用像 "hide", "hidden", "honeypot" 这样的常见类名。
总体而言,
wp-smart-honeypot插件是一个用于WordPress评论系统的安全工具,可以有效地减少垃圾评论产生,减轻网站管理员的管理负担。但要发挥最佳效用,需要正确安装并且确保评论表单是新式的。