Rate-limiting system, to prefent people form doing hacky stuff
This is the code documentation for the SproutCMS project
Search documentation |
class RateLimitRate-limiting system, to prefent people form doing hacky stuff
Functions
public checkLimitIPbool RateLimit::checkLimitIP ( string $event , bool|null $success , int $limit , int $time ); Check that a given event has only been hit by the request ip address an allowable number of times public getHitCountint RateLimit::getHitCount ( array $conditions , int $time ); Return the number of hits matching given conditions for a given time period protected logHitvoid RateLimit::logHit ( string $event , bool $success , string $username ); Log a hit against the rate-limit system public logHitFailurevoid RateLimit::logHitFailure ( string $event [, string $username ] ); Log a failure hit against the rate-limit system (e.g. password incorrect) public logHitSuccessvoid RateLimit::logHitSuccess ( string $event [, string $username ] ); Log a successful hit against the rate-limit system (e.g. user was logged in) |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |