PHP Classes

Log Limiter: Limit the number of failed login attempts

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 978 All time: 3,706 This week: 134Up
Version License PHP version Categories
loglimiter 0.3Public Domain5.0PHP 5, User Management, Security


This class can be used to limit the number of times an user fails to login.

It keeps track in a MySQL database the number of a time an user with a given IP address fails to attempt to login.

When the number of failed login attempts exceeded a given limit, the class sets a cookie that is used to determine that the user is blocked while the cookie does not expire.

Picture of Francesco Cirać
Name: Francesco Cirać <contact>
Classes: 3 packages by
Country: Italy Italy
Age: 31
All time rank: 129851 in Italy Italy
Week rank: 703 Up37 in Italy Italy Up


== LogLimiter == A PHP class for login attempts abuse preventing.

= What is LogLimiter LogLimiter implements an easy way to limit the login attempts from an user in a time period, for preventing things like bruteforces attacks.

= Using LogLimiter LogLimiter usage is simple. It is explained in the example file, moreover the class file is heavily commented. The only thing you need to do is to create the MySQL tables of LogLimiter (use the tables.sql dump file).

= LogLimiter License LogLimiter has not a license. Simply do what you want. I just enjoyed coding Token, don't care about.

= Author contacts Website: Email:

= Notes This is, in fact, a re-release of LogLimiter; I had already released it time ago. The only difference is the license change.

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Usage example
Plain text file loglimiter.class.php Class The LogLimiter class file
Accessible without login Plain text file readme.txt Doc. Readme file
Accessible without login Plain text file tables.sql Data SQL database dump

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,706
This week:134Up