if (ratelimit.check_rates(
client.ip, // Limit based on client IP
rc1, 1, 60, 150, // Max 150rps over a 1 minute period
rc2, 100, 10, 10, // Max 10rps over a 10 second period
pb, 1m // If triggered, ban client for 1 minute
)) {
error 601;
}
log "rc1 10 second count: " ratecounter.rc1.bucket.10s;
log "rc2 10 second count: " ratecounter.rc2.bucket.10s;