1. Go to this page and download the library: Download thealgoslingers/ddos library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thealgoslingers / ddos example snippets
## nce 'vendor/autoload.php';
use thealgoslingers\ddos;
$ddos = new DDoS();
$ddos->log();
$ddos = new DDoS($ip_address, $options);
## nce 'vendor/autoload.php';
use thealgoslingers\ddos;
$demo_ip = '0.0.0.0';// provided ip address
$ddos = new DDoS($demo_ip);
$ddos->log();
## nce 'vendor/autoload.php';
use thealgoslingers\ddos;
$demo_ip = '0.0.0.0';// provided ip address
// set options
$options = array(
"cache" => FALSE,
"log_file" => "path/to/your/log/file.txt",
"rate" => 15 // 15 request,
"timesamp" => 600 // 10 minutes in seconds
);
$ddos = new DDoS($demo_ip, $options);
$ddos->log();
## nce 'vendor/autoload.php';
use thealgoslingers\ddos;
$demo_ip = '0.0.0.0';// provided ip address
// set options
$options = array(
"cache" => FALSE,
"log_file" => "path/to/your/log/file.txt",
"rate" => 15 // 15 request,
"timesamp" => 600 // 10 minutes in seconds
);
// Define what DDoS should do if
// users hit the limit
function myFunc(){
// Do something when user hit the limit
}
$ddos = new DDoS($demo_ip, $options);
$ddos->log('myFunc');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.