IPSet IPSet是一个PHP库,用于将IP地址与一组CIDR规范进行匹配。 使用方法如下: use Wikimedia \ IPSet ; // At startup, calculate the optimized data structure for the set: $ ipset = new IPSet ( [ '208.80.154.0/26' , '2620:0:861:1::/64' , '10.64.0.0/22' , ] ); // Runtime check against cached set (returns bool): if (