2017 © Pedro Peláez
 

yii2-module yii2-ip-ratelimiter

Allow guest clients to be rate limited, using their IP as the identifier.

image

highweb/yii2-ip-ratelimiter

Allow guest clients to be rate limited, using their IP as the identifier.

  • Thursday, March 16, 2017
  • by atakajlo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

Yii2 IP Rate Limiter, (*1)

yii2-ip-ratelimiter

Allow guest clients to be rate limited, using their IP as the identifier., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require highweb/yii2-ip-ratelimiter "^1.0"

or add, (*5)

"highweb/yii2-ip-ratelimiter": "^1.0"

to the require section of your composer.json file., (*6)

Usage

Modify the behavior method of the controller you want to rate limit, (*7)

public function behaviors()
{
    return [
        'rateLimiter' => [
            // Use class
            'class' => \highweb\ratelimiter\RateLimiter::className(),

            // The maximum number of allowed requests
            'rateLimit' => 100,

            // The time period for the rates to apply to
            'timePeriod' => 600,

            // Separate rate limiting for guests and authenticated users
            // Defaults to true
            // - false: use one set of rates, whether you are authenticated or not
            // - true: use separate ratesfor guests and authenticated users
            'separateRates' => false,

            // Whether to return HTTP headers containing the current rate limiting information
            'enableRateLimitHeaders' => false,
        ]
    ];
}

Forked from ethercreative/yii2-ip-ratelimiter., (*8)

The Versions

16/03 2017

1.1.3

1.1.3.0

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston
by Dmitry Fedorenko

yii2 ratelimiter

16/03 2017

dev-master

9999999-dev

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston
by Dmitry Fedorenko

yii2 ratelimiter

16/03 2017

1.1.2

1.1.2.0

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston
by Dmitry Fedorenko

yii2 ratelimiter

16/03 2017

1.1.1

1.1.1.0

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston
by Dmitry Fedorenko

yii2 ratelimiter

16/03 2017

1.1

1.1.0.0

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston
by Dmitry Fedorenko

yii2 ratelimiter

29/04 2016

1.0

1.0.0.0

Allow guest clients to be rate limited, using their IP as the identifier.

  Sources   Download

MIT

by Matt Edmonston

yii2 ratelimiter