pepps11976
asked on
Forwarding to a web page based on ip address
Hi all
I have tasked with finding out the following
We are a sales company and also act as a reseller for other companys, what that would like to is if someone is buying a product from one of our resellers website what would happen at the moment is they would click on what they want to buy and then go to a third party shopping cart site, what I would like to know is, is it possible if anyone wants to buy a product and that user is based in the uk can the website detect this and if so could they then be redirected. To another site with different prices, if they are not in the uk it would just work as normal.
I must add I know nothing about the website that I am talking about ie: what it's written in etc, I just would like to know if it's possible and what steps I would need to advise on to achieve this.
Thanks
John
I have tasked with finding out the following
We are a sales company and also act as a reseller for other companys, what that would like to is if someone is buying a product from one of our resellers website what would happen at the moment is they would click on what they want to buy and then go to a third party shopping cart site, what I would like to know is, is it possible if anyone wants to buy a product and that user is based in the uk can the website detect this and if so could they then be redirected. To another site with different prices, if they are not in the uk it would just work as normal.
I must add I know nothing about the website that I am talking about ie: what it's written in etc, I just would like to know if it's possible and what steps I would need to advise on to achieve this.
Thanks
John
as i only work with asp.net, i often use Page.Request.UserHostAddre ss() to get the ip address of the user calling the page.
having that at hand, there are many web-sites/web services that given an ip adddress will tell you not only from which country the request originated, but from which town/region
having that at hand, there are many web-sites/web services that given an ip adddress will tell you not only from which country the request originated, but from which town/region
ASKER
Thanks for the info so if I used one of the above methods to check the origin of the user how do you code to say if from united kingdom then go to different site?
John
John
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://javascript.about.com/library/bllang.htm
http://www.javascriptkit.com/jsref/navigator.shtml