
Forum » » Questions » » Rediriger les bannis
Posté : 11-11-2008 18:20 
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","",fil e("logs/spam.log"));
if (in_array(getip().":5",$tab_spam)) {
access_denied();
}
}
Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=23841&forum=9