summaryrefslogtreecommitdiff
path: root/sites/default
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-08 22:50:55 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-08 22:50:55 +0000
commit08aa23227e45053117d273e517d7f386edc117ff (patch)
tree49dbd259c7f3551ef8ab8c12cd665759d605c87f /sites/default
parent1dfd1717c13db5d3ad0e6d64197241d33e6b5fb9 (diff)
downloadbrdo-08aa23227e45053117d273e517d7f386edc117ff.tar.gz
brdo-08aa23227e45053117d273e517d7f386edc117ff.tar.bz2
- Patch #228594 by catch et al: removed access rule functionality from core.
The access rules capability of user module has been stripped down to a simple method for blocking IP addresses. E-mail and username restrictions are now available in a contributed module. IP address range blocking is no longer supported and should be done at the server level. This patch is partly motiviated by the fact that at the usability testing, it frequently came up that users went to "access rules" when trying to configure their site settings.
Diffstat (limited to 'sites/default')
-rw-r--r--sites/default/default.settings.php23
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',
+# );