定制 brasstacksweb/craft-ip-blocker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

brasstacksweb/craft-ip-blocker

最新稳定版本:v2.3.0

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.

Settings screenshot

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.

Attempts screenshot

Blocks screenshot

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固