diff options
Diffstat (limited to 'sites/default/default.settings.php')
-rw-r--r-- | sites/default/default.settings.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 5f531e62f..f2cef06a2 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -226,3 +226,26 @@ ini_set('url_rewriter.tags', ''); # 'forum' => 'Discussion board', # '@count min' => '@count minutes', # ); + +/** + * + * IP blocking: + * + * To bypass database queries for denied IP addresses, use this setting. + * Drupal queries the {blocked_ips} table by default on every page request + * for both authenticated and anonymous users. This allows the system to + * block IP addresses from within the administrative interface and before any + * modules are loaded. However on high traffic websites you may want to avoid + * this query, allowing you to bypass database access altogether for anonymous + * users under certain caching configurations. + * + * If using this setting, you will need to add back any IP addresses which + * you may have blocked via the administrative interface. Each element of this + * array represents a blocked IP address. Uncommenting the array and leaving it + * empty will have the effect of disabling IP blocking on your site. + * + * Remove the leading hash signs to enable. + */ +# $conf['blocked_ips'] = array( +# 'a.b.c.d', +# ); |