Currently I setup my website using EE + Wordpress + PHP7 + Redis Cache + Cloudflare And now, I need to run a script that need to get the real IP of my visitor.
I’ve tried to google and search and follow the steps that are mentioned in here :
But it is all not working, the IP that I get is still referring to the cloudflare IPs. The only time I manage to get the real IP working, is when I disable the cloudflare proxy and only enable the DNS service. But the problem is I need to keep behind the cloudflare proxy so, if anyone know how to solve this or if I have done it wrongly, i’d more than happy to get any suggestion.