foowie/cloudflare-detection

Detect if request is done through Cloudflare

v0.1.5 2022-08-08 11:19 UTC

This package is auto-updated.

Last update: 2024-03-08 14:43:59 UTC


README

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());