A rate-limit implementation using Redis and PHP.
Use the ratelimit.php to implement the rate limit with a fast in-memory database Redis
To work, Redis must be installed on the webserver; read more at the official website: https://redis.io/
It is possible to modify the file for your needs and also implement an authentication system for your site; simply change the IP with the token used for authentication.
oskarcosimo / rate-limit Goto Github PK
View Code? Open in Web Editor NEWA rate-limit implementation using Redis and PHP
License: Apache License 2.0