brasstacksweb/craft-ip-blocker
Composer 安装命令:
composer require brasstacksweb/craft-ip-blocker
包简介
IP address blocker for Craft CMS applications to bock traffic from malicious sources.
README 文档
README
IP address blocker for Craft CMS applications to bock traffic from malicious sources.
Requirements
This plugin requires Craft CMS 5.0 or later, and PHP 8.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “IP Blocker”. Then press “Install”.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require brasstacksweb/craft-ip-blocker # tell Craft to install the plugin ./craft plugin/install craft-ip-blocker
Configuration
IP Blocker supports adding one or many conditions to determine if request resulting in an HTTP exception will be recorded and if the requesters I.P. address will be blocked.
Conditions
A condition can be added in the plugin settings and must consist of the following properties:
- Pattern: A string or regular expression (excluding the surrounding /) that will be matched against the message of the top level, or previous, exception thrown by the request.
- Max Attempts: The maximum number of allowed attempts matching the pattern before the I.P. address is blocked.
- Detection Window: The window of time (in seconds) that failed requests are counted toward the maximum.
- Block Time: The duration of time (in seconds) that an I.P. address is blocked after matching the pattern and meeting the maximum attempts.
Stats
Statistics for failed attempts against a condition and I.P. addresses that have been blocked are visible in the IP Blocker section of the CMS.
brasstacksweb/craft-ip-blocker 适用场景与选型建议
brasstacksweb/craft-ip-blocker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 brasstacksweb/craft-ip-blocker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brasstacksweb/craft-ip-blocker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-05-08


