maba/gentle-force
maba/gentle-force is a Laravel package for defending authentication against brute-force attacks. It gradually throttles repeated failed login attempts with configurable delays, helping slow attackers while keeping legitimate users unaffected. Simple middleware integration and cache-backed attempt tr...
throttle middleware and RateLimiter facade, (b) app-level middleware like this package, (c) an edge/WAF product (Cloudflare, AWS WAF, Fastly). This package is the middle option: more flexible than native, cheaper than edge.Consider it when:
Look elsewhere when:
RateLimiter plus Redis already covers your needs; it is framework-maintained and usually sufficient.Executives: An MIT-licensed, zero-cost way to add brute-force and abuse protection to auth and public endpoints — reducing account-takeover risk, support load, and compliance findings without a WAF line item. The trade-off is maturity: low adoption and no release since 2021, so frame it as a pattern to evaluate, not a long-term platform bet.
Engineering: A small middleware package that sits on Laravel's cache/rate limiter and adds error-based and brute-force-specific limiting beyond the stock throttle. It is clean and well-scoped, but verify Laravel version compatibility first and budget for forking or vendoring. Recommended next step: a short spike comparing it against the native RateLimiter; if native covers ~80% of the need, lift the "gentle" escalation pattern into your own middleware rather than taking on a dependency that is several years stale.
How can I help you explore Laravel packages today?