Merge "Apply IP blocks to X-Forwarded-For header"
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 7e88fc3..de874a6 100644 (file)
@@ -4324,6 +4324,13 @@ $wgSorbsUrl = array();
  */
 $wgProxyWhitelist = array();
 
+/**
+ * Whether to look at the X-Forwarded-For header's list of (potentially spoofed)
+ * IPs and apply IP blocks to them. This allows for IP blocks to work with correctly-configured
+ * (transparent) proxies without needing to block the proxies themselves.
+ */
+$wgApplyIpBlocksToXff = false;
+
 /**
  * Simple rate limiter options to brake edit floods.
  *