Core support for disabling HTTPS based on GeoIP
authorTim Starling <tstarling@wikimedia.org>
Wed, 21 Aug 2013 01:39:45 +0000 (11:39 +1000)
committerTim Starling <tstarling@wikimedia.org>
Wed, 21 Aug 2013 03:43:46 +0000 (13:43 +1000)
commitf0b346d6d07ec7b80772fd4f164b762799a21420
treed1b2db858c83934485857128d46557c16cffe16c
parent9d1d1c6adea1b505384f29a1ff886d31b42fe791
Core support for disabling HTTPS based on GeoIP

* Introduce a hook allowing automatic redirects to HTTPS to be
  disabled on the basis of client IP address.
* Make User::requiresHTTPS() return false if the client IP is
  blacklisted as such.
* On login, make the "stick HTTPS" option default to false if the
  client IP address is blacklisted as such.
* Do not redirect anonymous requests to HTTPS.
* If $wgSecureLogin is enabled, link to the HTTPS login page *via*
  the HTTP redirect, so that there is no need to vary the cache of
  anonymous page view HTML on client IP address.

Change-Id: Iaa9dd2108431b8c35e05db4bfe78a629018a003c
docs/hooks.txt
includes/GlobalFunctions.php
includes/SkinTemplate.php
includes/User.php
includes/Wiki.php
includes/specials/SpecialUserlogin.php