Announcement
Collapse
No announcement yet.
Where Does 3dc Obtain A Visitor's IP Address?
Collapse
X
-
Thanks for the feedback. I have a open ticket with support. They are looking into if anything else can be done. This may be a deal-breaker for using Cloudflare.
-
That code only works for sites running on a site using PHP. 3DCart runs on ASP.
Long story short, I don't think there is any way for you to pass the real visitor IP on to 3DCart in this situation.
Leave a comment:
-
Where Does 3dc Obtain A Visitor's IP Address?
Does anyone know where in the code a visitor's IP address is obtained? I have Cloudflare implemented on my site. Since Cloudflare acts as a proxy, only the IP addresses of Cloudflare's proxy servers are showing up in the IP Report within SmarterStats.
Looking at the following support article, https://support.cloudflare.com/entri...at-should-I-do , it states to insert the following code :
`<?php if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
?>`
I have inserted the code in frame.html before <body>, but it's not helping. Any ideas?Tags: None
Leave a comment: