Forum » » Questions » » Rediriger les bannis
Posté : 11 nov. 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","",file("logs/spam.log"));
if (in_array(getip().":5",$tab_spam)) {
access_denied();
}
}
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=23841&forum=9