Skip to content

andybellenie/cfwheels-rate-limiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rate Limiter

Prevent abuse of your servers by returning status 429 (Too Many Requests) once the specified number of requests has been hit (per time period).

Example

In the init() block of a controller, add the following before any filters (times are expressed in seconds):

rateLimiter(periodLength=3, maxRequests=10, banLength=60, allowedIPs="192.168.0.1");

The plugin runs as a filter. Ensure you call the plugin setup function before any other filters. The 'only' and 'except' arguments are passed through.

About

Rate limiting plugin for Coldfusion on Wheels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published