You make DZone different! Login and vote now.
By Bouvillon
via webcheatsheet.com
Published: Sep 21 2006 / 11:34
Sometimes you need to add an extra protection to a password-protected website. This article explains how access to the login page can be restricted after three unsuccessful login attempts. This schema uses a visitor's IP address to store log attempts in the database and block access to the login feature for 30 minutes after a third unsuccessful attempt.



Comments
unchqua replied ago:
For fast attempts counting one can use in-memory storage engines like MySQL's "MEMORY" engine. Its content is not preserved between DB server restarts, but IMHO it's not so important in this simple task.
Voters For This Link (7)
Voters Against This Link (0)