How can I detect visitor's country and redirect he/she to an specific website?

I have read several answers and I still don't know how to do it. I need to redirect my visitors to an specific website depending on their country.I have some knowledge in html and basic javascript.

Could somebody paste the code they?

Answers:

Answer

several ways to do this:

  1. use GPS tag in HTML
    • requires permission from users - probably not widespread.
    • this is the most accurate
  2. using IP address of the browser
  3. using locale settings (eg. en-US, en-UK etc)
    • cheapest
    • not real location but 90% of users will set correctly.

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.