How to delay login attempts after too many tries (PHP)

前端 未结 3 1048
长发绾君心
长发绾君心 2021-02-01 10:56

I\'m working on a fairly large web site built in PHP that will potentially have a lot of users. I\'m looking into a way to protect the login screen from automated attempts. I ha

3条回答
  •  心在旅途
    2021-02-01 11:35

    Why don't you wait with "hardening" and "scaling" your app until you actually have that problem? Most likely scenario is that the app will never have "a lot of users". This sounds like premature optimization to me, something to avoid.

    • Once you get bots abusing, harden the signup. I'd actually remove the captcha until you start getting > 1000 signups/day.
    • Once you get performance problems, improve performance by fixing real bottlenecks.

提交回复
热议问题