LOGIN DEFENCE.
Build a defence against repeated failed login attempts.
PROTECT A LOGIN SYSTEM.
Write two JavaScript functions for a fictional authentication system.
Rule A: Block login after 3 or more failed attempts.
Rule B: Reset failed attempts to 0 after a successful login.
All test data is simulated locally. No real accounts or login services are contacted.
YOUR LAB PROGRESS.
Complete all three stages to finish this free practical preview.
Terminal investigation: 0/3
Coding tests: 0/9
Security reflection: NOT SUBMITTED
LAB 01 / PREVIEW COMPLETE
You completed the terminal investigation, coding tests and security reflection.
Local preview completion only. No XP or certificate has been issued.
INVESTIGATE THE LOGIN ATTEMPTS.
Investigate a fictional authentication system using simulated terminal commands. Start by typing help.
WRITE YOUR DEFENCE.
YOUR RESULTS.
NEED A HINT?
For the first function, compare failedAttempts with 3 using >=.
For the second function, check loginSucceeded before deciding which value to return.
EXPLAIN YOUR DEFENCE.
Why does blocking an account after repeated failed login attempts reduce the risk of brute-force attacks?
Explain what happens when a login succeeds. Write at least 40 characters.
READY FOR MORE?
The full HerOps Practical pathway will include coding challenges, security investigations and defensive exercises.
This preview is local practice only. It does not award XP, unlock paid lessons or issue certificates.
EXPLORE PRACTICAL V2 →