Rate Limiting

Implement rate limiting and DDoS protection for API endpoints and critical routes.

security
Official
Featured
by RepoBird
Updated 10/18/2025
43 executions
Template Instructions
These instructions will be passed to the AI agent when executing this template

Add rate limiting to protect against abuse:

  1. Identify critical endpoints that need protection
  2. Implement rate limiting middleware
  3. Configure appropriate limits based on endpoint type
  4. Add request throttling for expensive operations
  5. Implement IP-based blocking for repeat offenders
  6. Add monitoring for rate limit violations

Success Criteria

  • Rate limiting implemented on all critical endpoints
  • Appropriate limits set per endpoint type
  • Rate limit headers returned (X-RateLimit-*)
  • Monitoring and alerting configured
  • IP blocking mechanism functional

Completion Checklist

  • Test rate limits with load testing tools
  • Create tests for rate limiting behavior
  • Document rate limit policies for API users
  • Configure logging for rate limit violations
  • Test IP blocking and unblocking mechanisms
Tags
DDoS
protection
rate-limiting
security
Supported Languages
Any Language