Apply IP blocks to X-Forwarded-For header
authorSkizzerz <skizzerz@gmail.com>
Sat, 17 Nov 2012 23:23:09 +0000 (17:23 -0600)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Mar 2013 12:51:46 +0000 (05:51 -0700)
commitd99bda6ee6b78345b8beaccc894a443a217d23cd
treec392b9eae5757a197e3e0dfe1fc0049f51df5426
parent41bd0f073e87580456c924e77c26da33ef86a155
Apply IP blocks to X-Forwarded-For header

Adds a new configuration variable ($wgApplyIpBlocksToXff), which when
enabled will scan the XFF header for IP addresses and check if any of
them have been blocked. $wgApplyIpBlocksToXff is disabled by default.

Bug: 23343
Change-Id: I3faa9c3e8107c6e46cdf21f8c18adda1f42890d7
RELEASE-NOTES-1.21
includes/Block.php
includes/DefaultSettings.php
includes/User.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc
tests/phpunit/includes/BlockTest.php