Send a cookie with IP/IP-Range blocks when blocking logged-out users
authorDayllan Maza <dayllan.maza@gmail.com>
Thu, 17 May 2018 05:55:02 +0000 (01:55 -0400)
committerDayllan Maza <dayllan.maza@gmail.com>
Thu, 24 May 2018 04:48:05 +0000 (00:48 -0400)
commite8063a08462f588b40fa23809ea83b8ef9c70b21
treeded7633ae1e6f6510a18d6f6820b61558b96a59e
parentca63cffd6824e96459850cfd2f45c86023676145
Send a cookie with IP/IP-Range blocks when blocking logged-out users

A cookie will be set when ip users try to edit and their IP has been
blocked or if they try to create an account and the block prevents
account creation

This feature is disabled by default and can be enabled by
setting the new $wgCookieSetOnIpBlock config variable to true.

Note: this is meant to discourage vandals that try to avoid blocks by
switching their ip address while editing anonymously.

Bug: T152462
Change-Id: I0b78a5e174bcd882edea39e868a08f9a347f5aba
RELEASE-NOTES-1.32
includes/DefaultSettings.php
includes/EditPage.php
includes/specials/SpecialCreateAccount.php
includes/user/User.php
tests/phpunit/includes/user/UserTest.php