# Brute Force Protection

> Why should a login endpoint add delays, rate limits or lockouts after failed attempts, and how would you design brute force protection without locking out...

Canonical: https://www.internhack.in/learn/interview/web-security/security-brute-force-vulnerability
Last updated: 2026-11-28

Difficulty: Beginner

## Question

Why should a login endpoint add delays, rate limits or lockouts after failed attempts, and how would you design brute force protection without locking out real users?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Brute Force, Credential Stuffing, Rate Limiting, Account Lockout, Password Spraying, Exponential Backoff

Previous: [Same-Origin Policy (SOP)](https://www.internhack.in/learn/interview/web-security/security-same-origin-policy) · Next: [CSPRNG](https://www.internhack.in/learn/interview/web-security/security-cryptographically-secure-random) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [Data at Rest](https://www.internhack.in/learn/interview/web-security/security-sensitive-data-rest)
- [Security Misconfiguration](https://www.internhack.in/learn/interview/web-security/security-security-misconfiguration)
- [Phishing Protection](https://www.internhack.in/learn/interview/web-security/security-phishing-prevention)
- [Social Engineering](https://www.internhack.in/learn/interview/web-security/security-social-engineering-basics)
- [Buffer Overflow](https://www.internhack.in/learn/interview/web-security/security-buffer-overflow-intro)
- [Blind SQL Injection](https://www.internhack.in/learn/interview/web-security/security-sql-blind-injection)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
