mikestecker/craft-guest-entries-honeypot

为Craft CMS的访客表单添加蜜罐验证码

1.0.0 2018-12-20 23:25 UTC

This package is auto-updated.

Last update: 2024-09-21 21:09:29 UTC


README

此插件允许您为Craft CMS的访客表单添加一个蜜罐验证码

要求

此插件需要Craft CMS 3.0.0或更高版本,以及Guest Entries插件。

安装

您可以从插件商店或使用Composer安装此插件。

从插件商店

进入项目的控制面板中的插件商店,搜索“Guest Entries Honeypot”,然后在模态窗口中点击“安装”按钮。

使用Composer

打开终端,运行以下命令

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require mikestecker/craft-guest-entries-honeypot

# tell Craft to install the plugin
./craft install/plugin guest-entries-honeypot

设置

要配置插件,请转到设置→访客条目蜜罐,并选择蜜罐字段应具有的参数名称。

然后编辑您的表单模板,并添加蜜罐字段。

<input id="secretHoneypotParamName" name="secretHoneypotParamName" type="text">

您可以使用CSS隐藏字段

input#secretHoneypotParamName { display: none; }