cloudgrayau/oopspam
Composer 安装命令:
composer require cloudgrayau/oopspam
包简介
OOPSpam Anti-Spam for Craft CMS
README 文档
README
A privacy friendly anti-spam utility to safeguard your website and customers.
Requirements
This plugin requires Craft CMS 4.0.0 or later.
Installation
composer require cloudgrayau/oopspam
OOPSpam Overview
OOPSpam is a privacy friendly anti-spam utility for protecting forms, user registrations, commerce and comments in Craft CMS.
OOPSpam is a modern spam filter that uses machine learning to analyse messages, checking each submission against an extensive database of over 500 million IPs and emails to effectively detect and block spam. The OOPSpam API protects over 3.5 million websites daily.
A valid API key from the OOPSpam Service is required to use this plugin.
Protection
The OOPSpam plugin protects the following services from spam and includes optional logging and reporting in the Craft CMS dashboard. The plugin supports both standard protection and contextual detection.
The OOPSpam plugin also comes with optional rate limiting, which can be enabled to reduce excessive spam requests.
User Registration Protection
Protects user registrations from spam.
Commerce Protection
Protects orders and subscriptions from spam.
Form Protection
Protects form submissions from spam. The current form integrations are protected:
✓ Formie (>= 2.0.0) - https://plugins.craftcms.com/formie
✓ Freeform (>= 5.0.0) - https://plugins.craftcms.com/freeform
✓ Contact Form (>= 3.0.0) - https://plugins.craftcms.com/contact-form
✓ Wheel Form (>= 4.0.2) - https://plugins.craftcms.com/wheelform
✓ Express Forms (>= 2.0.0; no longer maintained) - https://plugins.craftcms.com/express-forms
✓ Custom Forms - requires custom programming
Comment Protection
Protects comment submissions from spam. The current comment integrations are protected:
✓ Comments (>= 2.0.0) - https://plugins.craftcms.com/comments
✓ Custom Comments - requires custom programming
Custom Protection
Any form or comment logic can be protected by OOPSpam via a custom plugin/module controller.
The email and content params are required. The checkForLength parameter is optional and can be set to override the configuration value.
<?php
$params = [
'email' => '<EMAIL>',
'content' => '<MESSAGE>',
'checkForLength' => true /* optional */
];
if (\cloudgrayau\oopspam\OOPSpam::checkSpam($params, '<FORM LABEL>')){ /* passed */
}
?>
If you would rather use contextual detection, the content and contextual params are required. The email param is optional and is used for checking against any manual rules. The context and checkForLength parameters are also optional and can be set to override the configuration value.
<?php
$params = [
'content' => '<MESSAGE>',
'contextual' => true,
'email' => '<EMAIL>', /* optional */
'context' => '<WEBSITE PURPOSE>' /* optional, override */
'checkForLength' => true /* optional */
];
if (\cloudgrayau\oopspam\OOPSpam::checkSpam($params, '<FORM LABEL>')){ /* passed */
}
?>
Overriding Settings
You can now override settings on a per-form basis for the Formie, FreeForm, Express Forms and WheelForm integrations. This can only be done via config file.
Each override will need to use the form handle as the array key. As WheelForm doesn't support handles, the form ID should be used instead.
'forms' => [
'contact' => [ /* Form handle */
'disabled' => false, /* Optional setting to disable spam check for specific form */
'spamScore' => 3,
// extra settings
]
]
Domain Reputation
The OOPSpam plugin comes with a domain reputation checker. Simply, this tool evaluates the reputation of a given domain name by cross-referencing it against multiple authoritative sources, including Google, Microsoft, Mozilla, and various other reputable security providers. An active API key is required for this and each request counts towards your monthly tally.
Note: The list of providers may be updated periodically to ensure comprehensive coverage.
Test Suite
The OOPSpam plugin also includes a testing suite, where you can test the results of API calls for both general requests and contextual requests. An active API key is required for this and each request counts towards your monthly tally.
Brought to you by Cloud Gray Pty Ltd
cloudgrayau/oopspam 适用场景与选型建议
cloudgrayau/oopspam 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.28k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 10 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「cms」 「anti-spam」 「Craft」 「craftcms」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cloudgrayau/oopspam 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cloudgrayau/oopspam 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cloudgrayau/oopspam 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple captcha generator
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Provide a way to secure accesses to all routes of an symfony application.
Increase your Flarum forum's security with hCaptcha.
统计信息
- 总下载量: 3.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-29
