forked from leftypol/leftypol
functions.php: block on API suggestion
This commit is contained in:
parent
f7676d13d4
commit
f1bbd09751
1 changed files with 4 additions and 3 deletions
|
@ -1907,7 +1907,8 @@ function checkIPAPI(string $ip): bool {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ret['block'] == 1
|
if (($config['ip_api']['ip_block'] == 1 && $ret['block'] == 1)
|
||||||
|
|| $config['ip_api']['ip_block'] == 2 && $ret['block'] != 0
|
||||||
|| array_search($ret['isp'], $config['ip_api']['isp_blacklist']) !== false
|
|| array_search($ret['isp'], $config['ip_api']['isp_blacklist']) !== false
|
||||||
|| array_search($ret['asn'], $config['ip_api']['asn_blacklist']) !== false) {
|
|| array_search($ret['asn'], $config['ip_api']['asn_blacklist']) !== false) {
|
||||||
error($config['error']['proxy']);
|
error($config['error']['proxy']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue