diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-26 22:50:03 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-26 22:50:03 +1100 |
| commit | d40c6aefc6d18ae488b4163970f28c92e14bbc53 (patch) | |
| tree | 2ced467a16e85d449789f84e39e5d9d05715d215 /inc/config.php | |
| parent | b64604ca30c391f015cb077dca140ad65338fb8b (diff) | |
custom flood filters
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 38468f57..e6e81da3 100644 --- a/inc/config.php +++ b/inc/config.php @@ -371,6 +371,31 @@ 'raw' ); + // Custom flood filters. Detect flood attacks and reject new posts if there's a positive match. + //$config['flood_filters'] = Array( + // Array( + // 'condition' => Array( + // // 100 posts in the past 5 minutes (~20 p/m) + // 'posts_in_past_x_minutes' => Array(100, 5) + // ), + // // Don't allow the user to post + // 'action' => 'reject', + // // Display this message + // 'message' => 'Your post has been rejected on the suspicion of a flood attack on this board.' + // ), + // // Another filter + // Array( + // 'condition' => Array( + // // 10 new empty threads in the past 2 minutes + // 'threads_with_no_replies_in_past_x_minutes' => Array(10, 2), + // // Allow replies, but not new threads (ie. reject topics only). + // 'OP' => true + // ), + // 'action' => 'reject', + // 'message' => 'Your post has been rejected on the suspicion of a flood attack on this board (too many new threads); post a reply instead.' + // ) + //); + // A small file in the main directory indicating that the script has been ran and the board(s) have been generated. // This keeps the script from querying the database and causing strain when not needed. $config['has_installed'] = '.installed'; |
