Skip to content

TheKompreso/brute-force-protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brute-force-protection

Simple brute force defense (php)

Methods

List of methods that can be used immediately, without prior preparation

Basic Methods

The specified methods are basic, you can use them instead of the methods of the AntiBruteForce class.

Function: BlacklistCheck

BruteForceProtection::BlacklistCheck($userID,$hash,$intIP)

Checks if the $userID and $intIP are in the banned list, and if they are, firstly, it saves the data, and secondly, it duplicates the punishment on $intIP for the banned $userID.
return: returns true or false.

graph TD;
    A[BlacklistCheck]-->B[SelectIP and Check bantime];
    B-->|Is banned| C[return true];
    B-->D[SelectUser];
    D-->|Found| E[Check bantime];
    D-->|Not found| F[return false];
    E-->|Is banned| G[Ordering data $userdata and $ipdata];
    E-->H[return false];
    G-->I[return true];
Loading

About

Simple brute force defense (php)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages