Hallo zusammen,hallo FlipFlop
ich wollte die IP Sperre für das Gästebuch aktivieren. Habe auch wie im phpwcms-HowTo:wiki, unter IP-Sperre beschrieben, den
Codeschnipsel :
// Banned IP ================= +kh 24.10.09
if( !empty($guestbook['ban_ip']) ) {
$_ip = getRemoteIP();
$_ipex = explode('.', $_ip);
//exampl.IP 123.456.678.901
// $_ipex [0] [1] [2] [3]
$_ipex[3] = '*'; // 123.456.678.*
$_ip01 = implode ('.',$_ipex);
$_ipex[2] = '*'; // 123.456.*.*
$_ip02 = implode ('.',$_ipex);
if ( strpos($guestbook['ban_ip'], $_ip01) OR // xxx.yyy.zzz.*
strpos($guestbook['ban_ip'], $_ip02) OR // xxx.yyy.*.*
strpos($guestbook['ban_ip'], $_ip) )
{
$guestbook['flooding'] = 1;
$guestbook['readform'] = 1;
// $guestbook['spamalert'] = '<div class="spamFormAlert">Your IP '.getRemoteIP().' is not allowed to send form (Blacklist)!</div>';
$guestbook['spamalert'] = '<div class="spamFormAlert"><br /><hr><strong>Sorry, your are not allowed to send form!</strong><hr><br /></div>';
}
}
// ===============================
eingefügt. Nun bekomme ich aber den Tag nicht angezeigt um die IP Adressen einzutragen.
Wo liegt mein Fehler??
Gruß
Rkalli
IP Sperre in 1.4.7 klappt nicht
IP Sperre in 1.4.7 klappt nicht
von nix...kütt nix
Re: IP Sperre in 1.4.7 klappt nicht
Da steht doch: Tag (in der Vorlage): <!–BAN_IP_START–>...usw
Oder?
Soll wohl heißen: schreib das in die Vorlage....
Oder?
Soll wohl heißen: schreib das in die Vorlage....
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: IP Sperre in 1.4.7 klappt nicht
Ich mache das mittlerweile anders und sperre ganze Regionen in der .htaccess aus, deren User im Normalfall nichts mit den Seiten anfangen können. Seit dem gibt es kein Spam mehr in den Gästebüchern, außer einige deutsche politisch motivierte Einträge, die dann mit einem speziellen Script gefiltert werden.
Hier die .htaccess Filter:
Scrollen bis:
Our .htaccess blocklists:
Knut
Hier die .htaccess Filter:
Code: Select all
http://www.wizcrafts.net/htaccess-blocklists.html
Our .htaccess blocklists:
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: IP Sperre in 1.4.7 klappt nicht
That's better, indeed! And that's even mucho moro better:
Code: Select all
http://bot-trap.de
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.