This is an old revision of the document!


Show real visitor IP addresses instead of proxy IPs

When using CloudFlare CDN or another proxy in front of your web server, you may see a proxy IP instead of real IP addresses of visitors.

To restore real visitor IPs simply enable the Use Client IP in Header option in the General Settings section of the Configuration page in your LiteSpeed Web Admin Console.

Once enabled, your access logs will show the correct IP addresses and even PHP's $_SERVER['REMOTE_ADDR'] variable will contain your visitors' real IP addresses instead of a CloudFlare IP address. This will resolve most problems that might occur when enabling CloudFlare on PHP-enabled web sites (like WordPress or vBulletin installs).

To avoid CloudFlare IP addresses being blocked by server security settings, you should add Cloudflare IP/subnet to trusted list.

  • Admin
  • Last modified: 2016/06/16 21:04
  • by Jackson Zhang