Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rishabh997's avatar

Limit Login Attempts

i have a very simple php application where user logs in to view some info but i want to protect it from bruteforcing ... i want that if user failed 3 attempts then ban him .. i dont want to use larvel or any other framework just pure php..

0 likes
7 replies
topvillas's avatar

Put a login attempts field in your users table.

topvillas's avatar

Have a go yourself and then ask for advice if you have any problems.

rishabh997's avatar

topvillas !!! i asked only because i do not know !!

Please or to participate in this conversation.