Solve a CAPTCHA before login in RT


I am using a 5.0.1 RT version and I want to use some security feature to prevent unauthorized user logging into the system with a brute force attack.

With that in mind I thought I’d use a captcha system before login if anyone knows how to install or maybe a setting to block login after a third incorrect login attempt.

Thank you for the help.

CAPTCHA is IMHO quite frustrating for a user. What about something like Fail2ban?