Block users who fail to log in

Hello guys, I’m looking for advice on how to configure my MikroTik router to block IPs after three failed login attempts. Can anyone help me with this?

Where have you already looked?

Script isn’t really needed, from memory, just some firewall rules.