Download the PHP package brasstacksweb/craft-ip-blocker without Composer
On this page you can find all versions of the php package brasstacksweb/craft-ip-blocker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brasstacksweb/craft-ip-blocker
More information about brasstacksweb/craft-ip-blocker
Files in brasstacksweb/craft-ip-blocker
Package craft-ip-blocker
Short Description IP address blocker for Craft CMS applications to bock traffic from malicious sources.
License proprietary
Informations about the package craft-ip-blocker
IP Blocker
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:
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.