OP creation rate-limiting

- minimum time between OP is 30 seconds
This commit is contained in:
towards-a-new-leftypol 2021-01-24 06:49:01 +00:00
parent 4d4f87c40d
commit 65d82ff3f0
3 changed files with 43 additions and 6 deletions

View file

@ -340,6 +340,8 @@
* Read more: http://tinyboard.org/docs/index.php?p=Config/Filters
*/
// Minimum time between between each post.
$config['flood_time_any'] = 40;
// Minimum time between between each post by the same IP address.
$config['flood_time'] = 10;
// Minimum time between between each post with the exact same content AND same IP address.
@ -378,6 +380,17 @@
'message' => &$config['error']['flood']
);
$config['filters'][] = array(
'condition' => array(
'OP' => true,
'flood-time-any' => &$config['flood_time_any']
),
'noip' => true,
'find-time' => 60 * 60 * 1,
'action' => 'reject',
'message' => 'Hmmm'
);
// Example: Minimum time between posts with the same file hash.
// $config['filters'][] = array(
// 'condition' => array(