I am using cloudfare for my store but for some reason each time it get's cloudfare IP when user register. Is it possible to have real store IP instead of cloud fare IP?
Thanks!
Thanks!
check with cloudfare. I think it routes through their server and you will need them for help.
This might help since OpenCart is php based
http://support.cloudflare.com/kb/why-do ... forum-site
or maybe this one
http://support.cloudflare.com/cgi/kb/wh ... hould-i-do
http://support.cloudflare.com/kb/why-do ... forum-site
or maybe this one
http://support.cloudflare.com/cgi/kb/wh ... hould-i-do
Can someone please tell me where to put this code, I mean in what file?
http://support.cloudflare.com/cgi/kb/wh ... hould-i-do
Thanks!
http://support.cloudflare.com/cgi/kb/wh ... hould-i-do
Thanks!
open system/library/customer.php
find ALL
change to
find ALL
Code: Select all
REMOTE_ADDR
Code: Select all
HTTP_CF_CONNECTING_IP
Add following near beginning of index.php
right after //Version
This will pickup IP for direct clients as well.
right after //Version
This will pickup IP for direct clients as well.
Code: Select all
// Cloudflare CDN
if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
Who is online
Users browsing this forum: No registered users and 140 guests