PHPackages                             liquidbcn/craftcms-rate-limit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. liquidbcn/craftcms-rate-limit

ActiveCraft-plugin[Caching](/categories/caching)

liquidbcn/craftcms-rate-limit
=============================

Rate limiting abstraction which, in conjunction with your application's cache, provides an easy way to limit requests during a specified window of time.

2.2.1(4mo ago)0602proprietaryPHPPHP ^8.2

Since Nov 3Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/LiquidBarcelona/craft-cms-rate-limit)[ Packagist](https://packagist.org/packages/liquidbcn/craftcms-rate-limit)[ RSS](/packages/liquidbcn-craftcms-rate-limit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (11)Used By (0)

Rate Limit plugin for Craft CMS
===============================

[](#rate-limit-plugin-for-craft-cms)

Protect your Craft CMS site from DDoS attacks and abuse by limiting requests per IP address.

Requirements
------------

[](#requirements)

- Craft CMS 5.0.0 or later
- PHP 8.2 or later

Installation
------------

[](#installation)

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Require the plugin via Composer:

    ```
     composer require liquidbcn/craftcms-rate-limit

    ```
3. In the Control Panel, go to Settings → Plugins and click "Install" for Rate Limit.

Configuration
-------------

[](#configuration)

### Control Panel

[](#control-panel)

Navigate to Settings → Rate Limit to configure:

- **Enable Rate Limiting** - Toggle protection on/off
- **Max Requests per IP per Minute** - Request limit within a 60-second window (default: 4000)
- **Excluded IPs** - Whitelist IPs or CIDR ranges that bypass rate limiting

### Config File

[](#config-file)

You can also configure via `config/rate-limit.php`. Config file values take precedence over CP settings.

```
