- Repository: https://github.com/rodrigomanara/brutalforce
- Version: 2.0.0
composer require rmanara/brutalforce
Brute-Force method is used from many hackers but the brutalforce will help you void this problem by check the client IP and will count how many request in less than a 1 seconds, it will set a session and will reset after one minute
It is very simple setup and can be used in any frameworks.
very simple setup
<?php // require_once './vendor/autoload.php'; // use BrutalForce\Initiate // $init = new Initiate(); //display on the footer after the jQuery url been loaded //if rate "MEDIUM" as it is normall //if rate "MEDIUM HIGHT" as it is normall //if rate "LOW" it's is too quickly $rate = $init->Rate(); //this point you can stop the request ####### here is another way to use $predict = $init->predict(); //if is below 0.5 the request is too quickly and it can be a robot // over 0.5 then it's fine.