Skip to content

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

License

Notifications You must be signed in to change notification settings

LiquidBarcelona/craft-cms-rate-limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rate Limit plugin for Craft CMS

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published