34 $list = $this->textFormatter->format(
35 MessageValue::new(
'block-autoblock-exemptionlist' )
37 $lines = explode(
"\n", $list );
38 $this->logger->debug(
"Checking the autoblock exemption list.." );
39 foreach (
$lines as $line ) {
41 if ( !str_starts_with( $line,
'*' ) ) {
45 $wlEntry = substr( $line, 1 );
46 $wlEntry = trim( $wlEntry );
48 $this->logger->debug(
"Checking $ip against $wlEntry..." );
51 if ( IPUtils::isInRange( $ip, $wlEntry ) ) {
52 $this->logger->debug(
" IP $ip matches $wlEntry, not autoblocking" );
55 $this->logger->debug(
" No match" );