Back to Templates
4.0 (5)
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:
- Identify critical endpoints that need protection
- Implement rate limiting middleware
- Configure appropriate limits based on endpoint type
- Add request throttling for expensive operations
- Implement IP-based blocking for repeat offenders
- 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