If you are using Cloudflare or Google Cloud Load Balancing, you may have noticed that when viewing logs in Plesk you see the IPs used by the service instead of the user's real IP. To fixed this, you'll need to configure Apache or Nginx (depending on your configuration) so that logging will display the real IP addresses instead. 

For example, if you're website is proxied by Cloudflare, and you're using the default hosting settings in Plesk, you'll need log into Plesk and do the following:

Go to
Domains > example.com > Apache & nginx Settings, and add the following content to the Additional nginx directives:


set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;
real_ip_header CF-Connecting-IP;


Note: It might be required to add or update IP address ranges on occasion. Please refer to Cloudflare or Google for the most current up-to-date list.

For more information, please view the following support article from Plesk:

https://support.plesk.com/hc/en-us/articles/360025828373-Incorrect-IP-addresses-are-logged-by-Plesk-behind-a-Cloudflare-or-Google-Cloud-Load-Balancing

Was this answer helpful? 0 Users Found This Useful (0 Votes)