Jump to content

Recommended Posts

scrip antiflood.



<?php
if (!isset($_SESSION)) {
session_start();
}
// anti buferattack 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: /loquetuquieras.html");
exit;
}
$_SESSION['last_session_request'] = time();
?>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...