You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to profile URL behind CDN/Load Balancer (e.g. Cloudflare) #100
On header.php:
if ($controlIPs === false || in_array($_SERVER['REMOTE_ADDR'], $controlIPs) || PHP_SAPI == 'cli')
This will not be vaild if behind reverse proxy e.g: cloudflare / varnish / others
Should be something like this:
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
changed the title [-]In case a request is made on a URL that is behind Cloudflare, no profiling will be made by request[/-][+]Unable to profile URL behind CDN/Load Balancer (e.g. Cloudflare)[/+]on Oct 11, 2016
Activity
[-]In case a request is made on a URL that is behind Cloudflare, no profiling will be made by request[/-][+]Unable to profile URL behind CDN/Load Balancer (e.g. Cloudflare)[/+]aik099 commentedon Oct 11, 2016
Agreed. Please send a PR, where IP address detection will be made using new function.