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
Michael Bourne commented
"console > advanced > enable cloudflare" should be all you need (plus the official plugin never hurts) to forward IPs properly, Ben.
I'm now also told that code needs to be added to wp-config, as follows:
$xffaddrs = explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']);
$_SERVER['REMOTE_ADDR'] = $xffaddrs;
Quite disappointing that there is no mention of that in the support article.