You are here

private function AntiCrawler::is_cloudflare in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 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

AntiCrawler

Namespace

Cleantalk\Common\Firewall\Modules

Code

private function is_cloudflare() {
  return Server::get('HTTP_CF_RAY') && Server::get('HTTP_CF_CONNECTING_IP') && Server::get('HTTP_CF_REQUEST_ID');
}