ethercreative / yii2-ip-ratelimiter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about timePeriod

blacksmoke26 opened this issue · comments

Can you please describe what is the timePeriod (unit) property? Seconds or what?

I mean 1 min * X seconds?

It is extending the Yii rate limiter, which I believe is in seconds.

Thank you, I also figure it out, It's second unit.

In your example, 600 means seconds = 10 mins.

60 seconds * 10 minutes = 600 seconds