private function AntiCrawler::is_cloudflare in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/Firewall/Modules/AntiCrawler.php \Cleantalk\Common\Firewall\Modules\AntiCrawler::is_cloudflare()
1 call to AntiCrawler::is_cloudflare()
- AntiCrawler::is_redirected in src/
lib/ Cleantalk/ Common/ Firewall/ Modules/ AntiCrawler.php
File
- src/
lib/ Cleantalk/ Common/ Firewall/ Modules/ AntiCrawler.php, line 183
Class
Namespace
Cleantalk\Common\Firewall\ModulesCode
private function is_cloudflare() {
return Server::get('HTTP_CF_RAY') && Server::get('HTTP_CF_CONNECTING_IP') && Server::get('HTTP_CF_REQUEST_ID');
}