How to create a password lock after x4 failed attempts

I have been trying today to create a lock on a login page. So if a user tried more than x4 times it will lock them out for lets say 10 minutes.
Everything I am trying to do does not seem to work.

Do anyone have any ideas on hot to do this ??

Community Page
Last updated: