Show real visitor IP instead of CloudFlare IPs

When using CloudFlare CDN in front of your LiteSpeed Web Server, you may see a proxy IP instead of the real IP addresses of visitors:

Additional configuration is needed to reveal visitor IP addresses in your Litespeed logs.

To restore real visitor IPs, navigate to LiteSpeed WebAdmin Console -> Configuration -> Server -> General and set Use Client IP in Header to Trusted IP Only

Then, in Configuration -> Server -> Security add current CloudFlare IPs/Subnets to the trusted list:

Restart your Litespeed nodes and you’ll start to see real visitor IPs in the logs: