Protects endpoints from brute force attacks and resource abuse by limiting requests to 5 per minute per IP address. The documentation drives home the cost angle with a compelling example: a startup's unsecured AI endpoint racked up $200,000 in charges during a 4-hour attack. Implementation is straightforward with a middleware wrapper that works standalone or stacks with CSRF protection. Best applied to contact forms, password resets, file uploads, and any expensive operations like AI API calls. The 5 requests per minute limit stops automated attacks without impacting legitimate users, though you'll want something more sophisticated for high-traffic production APIs that need granular control or distributed rate limiting.

skills.sh installs
199
GitHub stars
18
last updated
Aug 21, 2026

Install

$ npx -y skills add harperaa/secure-claude-skills --skill rate-limiting --agent claude-code

Installs into .claude/skills of the current project.

Files

Rate Limiting - Preventing Brute Force & Resource Abuse

Why Rate Limiting Matters

The Brute Force Problem

Without rate limiting, attackers can try thousands of passwords per second. A 6-character password has 308 million possible combinations.

Without rate limiting:

  • At 1,000 attempts/second → Cracked in 5 minutes

With our rate limiting (5 requests/minute):

  • At 5 attempts/minute → Would take 117 years

Real-World Brute Force Attacks

Zoom Credential Stuffing (2020): Attackers made over 500,000 login attempts using stolen credentials. Proper rate limiting would have detected and blocked this within the first few hundred attempts.

WordPress Distributed Attacks (2021): Multiple WordPress sites were targeted by distributed brute force attacks attempting millions of login combinations. Sites without rate limiting saw server costs spike as attackers consumed resources.

The Cost of Resource Abuse

Beyond security, rate limiting protects your infrastructure costs. Without it:

Sponsors

Details

Repository
github.com/harperaa/secure-claude-skills
Categories
Backend & APIs, Debugging, Automation & Workflows, Cloud & Infrastructure
First seen
Jun 3, 2026

More from harperaa/secure-claude-skills

All 12
1harperaa avatarsecure-error-handlingharperaa/secure-claude-skillsImplement secure error handling to prevent information leakage and provide appropriate error responses. Use this skill when you need to handle errors in API rou197skills.sh installs
2cinience avataralicloud-network-esa-testcinience/alicloud-skillsMinimal smoke test for Alibaba Cloud ESA skill. Validate OpenAPI metadata discovery and API inventory generation for product ESA.194skills.sh installs
3iii-hq avatariii-browser-sdkiii-hq/iiiBrowser SDK for connecting to the iii engine from web applications via WebSocket. Use when building browser-based clients that register functions, invoke trigge194skills.sh installs
4iii-hq avatariii-custom-triggersiii-hq/iiiBuilds custom trigger types for events iii does not handle natively. Use when integrating webhooks, file watchers, IoT devices, database CDC, or any external ev193skills.sh installs
5iii-hq avatariii-http-invoked-functionsiii-hq/iiiRegisters external HTTP endpoints as iii functions using registerFunction(id, HttpInvocationConfig). Use when adapting legacy APIs, third-party webhooks, or imm193skills.sh installs
6iii-hq avatariii-trigger-conditionsiii-hq/iiiRegisters a boolean condition function and attaches it to triggers via condition_function_id so handlers only fire when the condition passes. Use when gating tr193skills.sh installs