Reedy added a comment.

  > Given the IP address 198.35.26.5 it is impossible to reason that the IP 
address belongs to Wikimedia Foundation.
  
  Not really, and MW has functionality for telling you that
  
  I would concur it might need some brute-forcing type investigation to find 
out which CIDR it belonged to (for each IP CIDR stored in wikidata....). But 
it's certainly not impossible
  
    > var_dump( IP::isInRange( '198.35.26.5', '198.35.26.0/23' ) );
    bool(true)
    
    > var_dump( IP::isInRanges( '198.35.26.5', [ '198.35.26.0/23', 
'208.80.152.0/22', '91.198.174.0/24', '198.73.209.0/24', '185.15.56.0/22', 
'103.102.166.0/24' ] ) );
    bool(true)

TASK DETAIL
  https://phabricator.wikimedia.org/T235389

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Reedy
Cc: Reedy, Niharika, Aklapper, dbarratt, darthmon_wmde, DannyS712, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to