public static function Helper::ip__is_cleantalks in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::ip__is_cleantalks()
* Get URL form IP. Check if it's belong to cleantalk. * *
Parameters
string $ip: * * @return false|int|string
File
- src/
lib/ Cleantalk/ Common/ Helper.php, line 446
Class
- Helper
- CleanTalk Helper class. Compatible with any CMS.
Namespace
Cleantalk\CommonCode
public static function ip__is_cleantalks($ip) {
if (self::ip__validate($ip)) {
$url = array_search($ip, self::$cleantalks_servers);
return $url ? true : false;
}
else {
return false;
}
}