In der Grundeinstellung ist es so, das der Floodschutz für Kommentare so ist, das Bots mehrere Kommentare schreiben können, wenn Sie das Captcha einmal geknackt haben in einer Session, so lange diese immer unter einem andern Content schreiben, mit dieser Anpassung wird, dies geändert, so schafft ein Bot maximal 1 Kommentar, falls er mal durch kommt. Diese Änderung ist nur für Gäste gültig, für registrierte Benutzer ist der klassische Floodschutz gülitig
Suche in der pkinc/public/comment.php nach:
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
|
$floodcontrol=pkTIME-($config['comment_floodctrl']*60);
$infocount=$SQL->fetch_array($SQL->query("SELECT COUNT(*)
FROM ".pkSQLTAB_COMMENT."
WHERE comment_ip='".$SQL->f($ENV->getvar('REMOTE_ADDR'))."' AND
comment_subid='".intval($_POST['subid'])."' AND
comment_userid='".intval(pkGetUservalue('id'))."' AND
comment_time>'".$floodcontrol."'
LIMIT 1"));
|
und ERSETZE mit:
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Flood Anpassung by Norman "Muetze" Huth */
$floodcontrol=pkTIME-($config['comment_floodctrl']*60);
if(pkGetUservalue('id'))
{
$infocount=$SQL->fetch_row($SQL->query("SELECT COUNT(*)
FROM ".pkSQLTAB_COMMENT."
WHERE comment_ip='".$SQL->f($ENV->getvar('REMOTE_ADDR'))."' AND
comment_subid='".intval($_POST['subid'])."' AND
comment_userid='".intval(pkGetUservalue('id'))."' AND
comment_time>'".$floodcontrol."'
LIMIT 1"));
}
else
{
$infocount=$SQL->fetch_row($SQL->query("SELECT COUNT(*)
FROM ".pkSQLTAB_COMMENT."
WHERE comment_ip='".$SQL->f($ENV->getvar('REMOTE_ADDR'))."' AND
comment_userid='0' AND
comment_time>'".$floodcontrol."'
LIMIT 1"));
}
/* Flood Anpassung by Norman "Muetze" Huth */
|