Hello,
I have fixed users real IP by help of cpanel and this link:
support.cpanel.net
But the problem is now that in the logs it still shows cloudflare IPs and when an attack happens mod_qos or evasive blocks cloudflare IPs instead of attackers IP, when disabling cloudflare then it works and shows real IPs in the logs, but not when it's under cloudflare protection.
Running this command and shows only cloudflare IPs with user connections:
netstat -plan|grep :443 |awk '{print $5}' | awk -F : '{print $(NF-1)}' | sort | uniq -c | sort -n
Wondering if there is any solution to fix that as well? appreciate the advice!
Best regards,
I have fixed users real IP by help of cpanel and this link:

Restoring visitors IP with mod_remoteip
Introduction Sometimes you'll have traffic come from another source such as Cloudflare, another proxy source, or a dedicated firewall. Apache offers mod_remoteip which will allow you to restore the...
But the problem is now that in the logs it still shows cloudflare IPs and when an attack happens mod_qos or evasive blocks cloudflare IPs instead of attackers IP, when disabling cloudflare then it works and shows real IPs in the logs, but not when it's under cloudflare protection.
Running this command and shows only cloudflare IPs with user connections:
netstat -plan|grep :443 |awk '{print $5}' | awk -F : '{print $(NF-1)}' | sort | uniq -c | sort -n
Wondering if there is any solution to fix that as well? appreciate the advice!
Best regards,
Last edited: