Selasa, 25 Juni 2013

PHP DosDetector Class




Description

PHP DosDetector Class Documentation

Version: 1.1

Release: June 2013

Keyword: security, php, class, firewall, DoS Attack, IDS/IPS

1. What is this class?

This PHP Class used for preventing Denial of Service (DoS) attack to your web server written by PHP. Running this script will monitoring all requests from an IP address and logged it into memory cache (PHP APC Caching). If an IP address sends too much request to your server, it will trigger the Intrustion Preventing System (IPS) and auto-ban this IP Address.

2. System Requirement

3. Installation

- First, copy class.dosdetector.php file to your project, such as ./classes/ directory on your project.

- Next, including class.docsdetector.php file.

- Now, just create an object from this class and call run method before the first line of your project (usally in bootstrap, start up or index file) to start monitoring. You can pass an URL to run method in case banned IP will be redirect to passed URL. If you do not pass this parameter, banned IP will see a default message on screen.

- Example code:

        //Put this in the beginning of your all page        include_once(


Category : Scripts, php-scripts, add-ons | Rating: 5.0 out of 5.

Tidak ada komentar:

Posting Komentar