I have a system with captcha on my site to try to block this login, however it is very inconvenient because the user needs to do it every time it is logged in, then
How to show the catpcha after N login attempts?
I saw some examples with section and increment but would be easily circumvented by deleting cookies, some example of how to make it otherwise safer?