Pages vues depuis 25/05/2001 : 108 381 029
Index du forum »» Questions »» Rediriger les bannis
function access_denied() {
!include!("admin/die.php");
}
// First of all : Spam-flood from IP / :5 indicate that the same IP has passed 6 times with status KO in the anti_spambot function
if (file_exists("logs/spam.log")) {
$tab_spam=str_replace("\r\n","",file("logs/spam.log"));
if (in_array(getip().":5",$tab_spam)) {
access_denied();
}
}