If you have a website setup using cloudflare, then you likely know that the access and error logs will show cloudflare IP addresses instead of the actual IP address of the visitor.
To get around this in LiteSpeed, do the following.
- Log into the LiteSpeed WebAdmin panel
- Click on Configuration
- Click on Server
- Click on the Edit button beside General settings
- Change Use Client IP in Header to Yes
- Save the changes, then do a graceful restart of LiteSpeed.
Now, if you watch your log files, you should see the visitors real IP address, and not cloudflare’s IP address.