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
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'];
The text was updated successfully, but these errors were encountered:
aik099
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)
Oct 11, 2016
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'];
}
The text was updated successfully, but these errors were encountered: