forked from leftypol/leftypol
OP rate limiting should only look at opening posts in the flood table
This commit is contained in:
parent
f71bc3337b
commit
66b6682952
1 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,7 @@
|
||||||
* Read more: http://tinyboard.org/docs/index.php?p=Config/Filters
|
* Read more: http://tinyboard.org/docs/index.php?p=Config/Filters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Minimum time between between each post.
|
// Minimum time between between each opening post.
|
||||||
$config['flood_time_any'] = 40;
|
$config['flood_time_any'] = 40;
|
||||||
// Minimum time between between each post by the same IP address.
|
// Minimum time between between each post by the same IP address.
|
||||||
$config['flood_time'] = 10;
|
$config['flood_time'] = 10;
|
||||||
|
@ -351,6 +351,7 @@
|
||||||
|
|
||||||
$config['filters'][] = array(
|
$config['filters'][] = array(
|
||||||
'condition' => array(
|
'condition' => array(
|
||||||
|
'flood-match' => array('isreply'), // Only match IP address
|
||||||
'OP' => true,
|
'OP' => true,
|
||||||
'flood-time-any' => &$config['flood_time_any']
|
'flood-time-any' => &$config['flood_time_any']
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue