Hi,
I’ve been using this plugin for a while and it’s working fine. However when I turn on DEBUG, I see it is generating lots of errors:
Notice: Undefined index: HTTP_CF_CONNECTING_IP in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29
Notice: Undefined index: HTTP_X_FORWARDED in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29
Notice: Undefined index: HTTP_FORWARDED_FOR in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29
Notice: Undefined index: HTTP_FORWARDED in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29
Notice: Undefined index: HTTP_X_REAL_IP in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 29
Notice: Undefined index: HTTP_CF_VISITOR in .../www/wp-content/plugins/zarza-real-ip/zarza-real-ip.php on line 57
I have made changes to check that a header exists before accessing its value. See this pull request:
https://github.com/wp-plugins/zarza-real-ip/pull/1
Seems to be working for me, but please test!
]]>Hello
I am using cloudbric.com cloud security i unable to get real from cloudbric proxy ip they are using this parameter
if(isset($_SERVER[‘X-Real_IP’])){
$_SERVER[‘REMOTE_ADDR’] = $_SERVER[‘X-Real_IP’];
}
Will you Fix my problem
Thanks
]]>