Link to home
Start Free TrialLog in
Avatar of pepps11976
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
Avatar of ganix
ganix
Flag of Spain image

You can detect country and language with javascript. Here are two links that could be usefull for you to check:
http://javascript.about.com/library/bllang.htm
http://www.javascriptkit.com/jsref/navigator.shtml
as i only work with asp.net, i often use Page.Request.UserHostAddress() 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
Avatar of pepps11976
pepps11976

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
ASKER CERTIFIED SOLUTION
Avatar of Jan Janßen
Jan Janßen
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial