Browse Source

OP rate limiting should only look at opening posts in the flood table

pull/40/head
towards-a-new-leftypol 3 years ago
parent
commit
c03ccd63a1
  1. 3
      inc/config.php

3
inc/config.php

@ -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…
Cancel
Save