Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 451 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 451 Bytes

Cloudflare Request Detection

CircleCI

You can use this library to detect if request is done through Cloudflare.

	$cloudflare = new CloudflareDetector();
	echo($cloudflare->isCloudflareRequest());
	echo($cloudflare->getConnectingRequestIp());
	echo($cloudflare->getConnectingCountryCode());