summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-22 00:25:00 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-22 00:25:00 +1100
commit6aa24cce92e43c0e4735930566da2a3b27910859 (patch)
tree4a08c4af18085546f51c327efa3afddd4c2fc1e5 /inc/config.php
parent3380c3008f2922b39243a2816a0cf0a9a6a029a3 (diff)
CIDR netmask bans
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index cdeffea9..d6b10f0e 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -718,6 +718,10 @@
// A little more load on the database
$config['ban_range'] = true;
+ // Enable CDIR netmask bans (eg. "10.0.0.0/8" for 10.0.0.0.0 - 10.255.255.255). Useful for stopping persistent spammers.
+ // Again, a little more database load.
+ $config['ban_cidr'] = true;
+
// Do a DNS lookup on IP addresses to get their hostname on the IP summary page
$config['mod']['dns_lookup'] = true;
// Show ban form on the IP summary page