Simple PHP Script Anti Flood DDoS


http://yorktown.cbe.wwu.edu/sandvig/mis314/lectures/images/PhpScript.png



<?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://cuaso-it.blogspot.com/");
exit;
}
$_SESSION['last_session_request'] = time();
?>
Nguồn: junookyo

Đăng nhận xét

[blogger][disqus][facebook][spotim]

Author Name

{picture#YOUR_PROFILE_PICTURE_URL} YOUR_PROFILE_DESCRIPTION {facebook#YOUR_SOCIAL_PROFILE_URL} {twitter#YOUR_SOCIAL_PROFILE_URL} {google#YOUR_SOCIAL_PROFILE_URL} {pinterest#YOUR_SOCIAL_PROFILE_URL} {youtube#YOUR_SOCIAL_PROFILE_URL} {instagram#YOUR_SOCIAL_PROFILE_URL}

Biểu mẫu liên hệ

Tên

Email *

Thông báo *

Được tạo bởi Blogger.