: How can I log a user's actual IP address instead of CloudFlare's? My raw access log is now filled with CloudFlare IP addresses. Is there any way I can use a .htacess file or configure the
My raw access log is now filled with CloudFlare IP addresses. Is there any way I can use a .htacess file or configure the server to log the user's actual IP address?
With PHP, CloudFlare creates these environment variables for our reference, but I can't find anything similar for raw access logs.
Unfortunately, as suggested in this Stack Overflow question, using mod_cloudflare.c for the following is not an option on a shared hosting server:
$_ENV["HTTP_CF_CONNECTING_IP"]<br>
$_ENV["HTTP_X_FORWARDED_FOR"]<br>
$_ENV["HTTP_CF_IPCOUNTRY"]<br>
More posts by @Connie744
1 Comments
Sorted by latest first Latest Oldest Best
We have solutions for restoring original visitor IP with CloudFlare in our knowledge base.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.