werkbot/silverstripe-spam-module

GitHub: werkbot/silverstripe-spam-module

一个基于 SilverStripe 的表单反垃圾模块,利用蜜罐字段和提交计时器两种无侵入方式自动识别并拦截机器人提交。

Stars: 2 | Forks: 3

# SilverStripe Spam 模块 [![最新稳定版本](http://poser.pugx.org/werkbot/werkbot-spam-protection/v)](https://packagist.org/packages/werkbot/werkbot-spam-protection) [![总下载量](http://poser.pugx.org/werkbot/werkbot-spam-protection/downloads)](https://packagist.org/packages/werkbot/werkbot-spam-protection) [![最新不稳定版本](http://poser.pugx.org/werkbot/werkbot-spam-protection/v/unstable)](https://packagist.org/packages/werkbot/werkbot-spam-protection) [![许可证](http://poser.pugx.org/werkbot/werkbot-spam-protection/license)](https://packagist.org/packages/werkbot/werkbot-spam-protection) [![要求 PHP 版本](http://poser.pugx.org/werkbot/werkbot-spam-protection/require/php)](https://packagist.org/packages/werkbot/werkbot-spam-protection) 一个使用 Honeypot 和 Timer 字段来标记机器人提交的 SilverStripe Spam 模块 ## 安装说明 ``` composer require werkbot/werkbot-spam-protection ``` #### 前置条件 - https://github.com/silverstripe/silverstripe-spamprotection ## 设置 要将其设置为默认的垃圾邮件防护,请将以下内容添加到你的 mysite/_config/spamprotection.yml 文件中 ``` --- name: mycustomspamprotection --- SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: Werkbot\SpamProtection\HoneypotProtector ``` 你可以选择在同一文件中的 `default_spam_protector` 行下添加以下内容来设置 Timer 字段的时间,其中 x 是秒数 ``` time_not_bot: x ``` 如果你打算修改 sass 文件,可以将此文件和 components 文件夹复制到你的 sass 目录中并进行相应的更新。 ## 用法 * [用法文档](docs/en/README.md) ## 文档 使用 Doctum 生成文档: ``` ./vendor/bin/doctum.php update doctum.config.php ``` 查看 API 文档: ``` start doctum_build/index.html ```
标签:ffuf, OpenVAS, PHP, SilverStripe, Syscall, Web开发, 反垃圾, 蜜罐技术, 表单保护