Skip to content

rorry47/Check-OVH-DDOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Check-OVH-DDOS

PHP script to check DDOS status

Installation

Install this wrapper and integrate it inside your PHP application with Composer:

composer require ovh/ovh

More fow this: https://github.com/ovh/php-ovh/

Settings

In file index.php add your applicationKey\applicationSecret\endpoint\consumerKey:

<?php
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

// Api credentials can be retrieved from the urls specified in the "Supported endpoints" section below.
$ovh = new Api($applicationKey,
                $applicationSecret,
                $endpoint,
                $consumerKey);
echo 'Welcome '.$ovh->get('/me')['firstname'];

In file index.php add your servers in:

// Defining a list of servers
$array_servers = array(
    'server1.example.com',
    'server2.example.com',
    'server3.example.com',
    'server4.example.com'
);

Domains or subdomains that you register must be resolved from OVH IP addresses, because it checks IP addresses and displays information exclusively on them.


The result will be something like this:

About

PHP script to check DDOS status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages