Fix the Cloudflare Support Page
Unless I'm just missing it, this page... https://support.cloudways.com/can-i-use-cloudflare-cdn/
...is missing the critical step where you need to go to the server console > advanced > enable cloudflare
1
vote
-
Michael Bourne commented
"console > advanced > enable cloudflare" should be all you need (plus the official plugin never hurts) to forward IPs properly, Ben.
-
Ben
commented
I'm now also told that code needs to be added to wp-config, as follows:
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$xffaddrs = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']);
$_SERVER['REMOTE_ADDR'] = $xffaddrs[0];
}Quite disappointing that there is no mention of that in the support article.