How do i get the Real IP of a visitor who is using a proxy if my server is using Cloudflare?
So far this works if a visitor open my server (which is using cloudflare) without using a proxy
isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
Have you checked HTTP_X_FORWARDED_FOR ?
You can see it in action here: http://canhazip.com/more.php which is passing through CloudFlare. You can use that page if you’d like to test with a proxy as well.
p.s. Disclaimer: I work at CloudFlare.