- Posts: 147
- Thank you received: 8
Orders made with server ip address
4 years 9 months ago #338251
by NicoW
Orders made with server ip address was created by NicoW
Hi,
For affiliate sales everything needs to go right.
Now I can't help if the customer doesn't accept the cookie, of if the link is opened on instagram browser and later they buy with normal browser.
What i hope i can control is how ip addresses are coming up.
I see many visits on my site are registered with my server's (host's) ip address.
When this happens ofcourse an affiliate sale will not be registered.
Can i change settings or do something to prevent this from happening and make the cart register the real ip address?
Thank you
For affiliate sales everything needs to go right.
Now I can't help if the customer doesn't accept the cookie, of if the link is opened on instagram browser and later they buy with normal browser.
What i hope i can control is how ip addresses are coming up.
I see many visits on my site are registered with my server's (host's) ip address.
When this happens ofcourse an affiliate sale will not be registered.
Can i change settings or do something to prevent this from happening and make the cart register the real ip address?
Thank you
Please Log in or Create an account to join the conversation.
4 years 9 months ago #338253
by nicolas
Replied by nicolas on topic Orders made with server ip address
Hi,
The IP HikaShop adds to carts / orders is what PHP provides:
stackoverflow.com/questions/3003145/how-...nt-ip-address-in-php
That information can be spoofed, and should not be trusted.
If the user uses a VPN, proxy, or if your server is behind a proxy, the IP address won't the customer's.
I'm afraid you won't be able to do anything.
Note that the affiliation mechanism doesn't depend on the IP address of the user. It depends on the cookies provided by the browser of the user.
So regardless of what the IP address of the user is, if he is behing a procy or not, etc the affiliation will still work as long as the browser provides the cookies.
This might not happen if the browser blocks the cookies (some browser privacy extensions allow for that) and in that case there is not much you can do.
The IP HikaShop adds to carts / orders is what PHP provides:
stackoverflow.com/questions/3003145/how-...nt-ip-address-in-php
That information can be spoofed, and should not be trusted.
If the user uses a VPN, proxy, or if your server is behind a proxy, the IP address won't the customer's.
I'm afraid you won't be able to do anything.
Note that the affiliation mechanism doesn't depend on the IP address of the user. It depends on the cookies provided by the browser of the user.
So regardless of what the IP address of the user is, if he is behing a procy or not, etc the affiliation will still work as long as the browser provides the cookies.
This might not happen if the browser blocks the cookies (some browser privacy extensions allow for that) and in that case there is not much you can do.
Please Log in or Create an account to join the conversation.
Time to create page: 0.168 seconds