Kamis, 14 Februari 2013

PHP Script Anti Flood DDOS

PHP Script Anti Flood DDOS 
Code:
<?php
//
// Description : Script anti flood
// Version      : 0.0.1
// Auteur       : Atmoner
// Url          : http://httpscript.org
//
if (!isset($_SESSION)) {
    session_start();
}
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
    // users will be redirected to this page if it makes requests faster than 2 seconds
    header("location: http://httpscript.org");
    exit;
}
$_SESSION['last_session_request'] = time();
?>

Tidak ada komentar:

Posting Komentar