imthebest
Well-known member
Hi Mike,
On a recent thread you said the following:
I'm using Cloudflare and in order to make my forum able to recognize the real IPs of my members (and not those Cloudflare IPs) I have added the following on my config.php file:
By doing this I'm becoming vulnerable?
Thanks,
Super120
On a recent thread you said the following:
https://xenforo.com/community/threa...chromes-data-saver-enabled.97501/#post-930873We record the IP that connected to the server, not the untrusted and spoofable forwarded IP. Recording the spoofable IP (only) would create a vulnerability and a trivial way to hide where you're actually connecting from.
I'm using Cloudflare and in order to make my forum able to recognize the real IPs of my members (and not those Cloudflare IPs) I have added the following on my config.php file:
Code:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
By doing this I'm becoming vulnerable?
Thanks,
Super120