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.

1.0.4 2022-11-24 10:29 UTC

This package is not auto-updated.

Last update: 2024-05-23 17:13:04 UTC


README

This plugin allows you to limit the requests on your site per IP preventing DDOS attacks from bots and people.

Requirements

This plugin requires Craft CMS 4.0.0 or later

Installation

To install the plugin, follow these instructions.

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

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require liquid/craftcms-rate-limit
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Rate Limit.

Configuring Rate Limit

You can configure the Rate Limit creating a file under your config folder named rate-limit with this content

<?php

return [
    'maxRequestsPerIpPerMinute' => 100,
];

Brought to you by Liquid Studio