I have a login page. Do I need to protect it with Captcha or how do I handle it?
For example, if a person knows the username, he can use curl or something else and repeatedly try to guess passwords. He will use many MySQL queries, and he will eat my resources.
So should I use Captcha to login? Or maybe I should store how many times a person tried to guess the password using $ _SESSION, and if he guessed that the password is 10 times wrong, would I show Captcha? Is it safe to use such information in $ _SESSION? Maybe I should allow a person to enter a login only every 10 seconds also using $ _SESSION? Will it be 100% safe? Or what would you suggest to me?
EDIT: Please read my comment by post on Eljakim.
source share