raruto / cockpit-honeypot
Cockpit CMS 的蜜罐插件
0.0.2
2021-01-29 18:00 UTC
Requires
- php: >= 7.3
- composer/installers: ^1.10
Suggests
- aheinze/cockpit: Please install Cockpit before installing this addon
This package is auto-updated.
Last update: 2024-09-29 05:49:03 UTC
README
Cockpit CMS 的蜜罐插件
功能
- 将 "honeypot" 开关添加到表单设置中
- 自动将 "honeypot" 字段添加到 cockpit
Forms::open
api - 自动验证 cockpit
Forms::submit
提交的 "honeypot" 字段 - 自动排除无效提交的条目
安装
手动
下载 最新版本 并解压到 COCKPIT_PATH/addons/Honeypot
目录
Git
git clone https://github.com/Raruto/cockpit-honeypot.git ./addons/Honeypot
Cockpit CLI
php ./cp install/addon --name Honeypot --url https://github.com/Raruto/cockpit-honeypot.git
Composer
- 确保在项目的 composer.json 文件中定义了 cockpit 插件路径
{ "name": "MY_PROJECT", "extra": { "installer-paths": { "cockpit/addons/{$name}": ["type:cockpit-module"] } } }
- 在项目根目录运行
composer require raruto/cockpit-honeypot
相关项目: ExtendedForms, FormValidation