I also had to unmask the real IP when I started using Cloudflare.
Since my projects were hosted on my own server and it was more than one project, I decided to use mod_remoteip instead of tweaking the code everywhere, and already get the real IP when I’m using $_SERVER[‘REMOTE_ADDR’].
Solo maker of mailshld.com, 3o2.co & ziip.link. Currently building kiwicart.io and helping localize the Internet at WOVN.io. Occasionally writing on Dev.to.
Good post Rogerio :)
I also had to unmask the real IP when I started using Cloudflare.
Since my projects were hosted on my own server and it was more than one project, I decided to use mod_remoteip instead of tweaking the code everywhere, and already get the real IP when I’m using $_SERVER[‘REMOTE_ADDR’].
More on this for those who are in the same situation: support.cloudflare.com/hc/en-us/ar...
That’s an awesome solution, Arvin! Thanks for sharing. 🙏👏🤩