Guest Posted October 11, 2004 Share Posted October 11, 2004 I installed the Order IP Recorder v1.0 mod by Acheron and it works, but the IP that is shown is the IP of Authorize.net, not the customer's IP. Is there a way to grab the customer's IP instead of Authorize.net's IP by modifying this mod? Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2004 Share Posted October 19, 2004 Does someone have the ability to write some code to solve this problem? The mod works great, but returns the Authorize.net IP instead of the customer's IP. I have another mod installed that puts a customer's IP in SQL when an account is set up or modified. Could I just call that IP? Would I get an error if it was blank? The IP only gets recorded when an account is set up or modified after the mod was installed, so preexisiting accounts will have blanks instead of IPs. Any suggestions? Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2004 Share Posted November 20, 2004 Does anyone have an opinion as to whether making the change shown below in the file checkout_process.php will solve the problem and capture the customer's IP address instead of the Authorize.net IP address? ____________________________________________________ Current Code: include('includes/application_top.php'); if (getenv('HTTP_X_FORWARDED_FOR')) { $ip=getenv('HTTP_X_FORWARDED_FOR'); } else { $ip=getenv('REMOTE_ADDR'); } ____________________________________________________ Proposed Code: { $ip=getenv('REMOTE_ADDR'); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.