rmanara/brutalforce

help on secure website against brutal force attack

2.0.1 2021-03-06 18:58 UTC

This package is auto-updated.

Last update: 2024-11-07 03:01:38 UTC


README

Latest Stable Version Total Downloads License composer.lock Build Status

brutalforce

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.