Mediawiki - 1.30 - ProxyList - White page login connexion - How block ips list with mediawiki now ?
Official mediawiki page for $wgProxyList with my comment :
https://www.mediawiki.org/wiki/Manual_talk:$wgProxyList#White_page_with_mediawiki_1.30
With this first link, you can read that :
Work good with mediawiki 1.28 / 1.29 / 1.29.1
With mediawiki 1.30, the login page not work. White page.
When i comment this line, login page work good :
#require_once("$IP/extensions/bannedips.php");
Then, i suppose, this script not work with mediawiki 1.30
The french translation for the 1.30 mediawiki documentation say : L'utilisation d'un tableau associatif pour $wgProxyList, où l'adresse IP est dans la clé au lieu de la valeur, est déconseillée (par exemple ['127.0.0.1' => 'valeur']). Veuillez convertir ces tableaux en tableaux indexés / séquentiels (par exemple ['127.0.0.1']).
Then, replace the old method in this file /extensions/bannedips.php :
<?php $wgProxyList = array( '1.0.135.30', '1.0.137.139', '1.0.178.169', '1.0.178.218', '1.0.178.58', );
by
<?php $wgProxyList = array( ['1.0.135.30'], ['1.0.137.139'], ['1.0.178.169'], ['1.0.178.218'], ['1.0.178.58'] );
This method work i can use login page and i'm now connected, but, was very long, need a lot capacity.
The total list of ips can not be used.
The access time is far too long.
Semblait avoir été résolu mais la nouvelle méthode est très lente, et, depuis un autre wiki, le warning suivant est affiché :
Warning: IPSet: Bad mask from 'Array', ignored in /homepages/38/d548381562/htdocs/CLPublic/wiki/vendor/wikimedia/ip-set/src/IPSet.php on line 125
J'ai supprimé l'extension pour le moment.
My page in french with the same comment :
https://www.visionduweb.eu/wiki/index.php?title=Maintenance_et_securite_de_Mediawiki#Bloquer_les_robots_spammeurs_avec_wgProxyList