I want to show my pages by country in javaScript I want to show my web pages in dubaie and frach and India so what do I need to do in code if I am in dubaie so I can only access the page for duabaie, not an india page I can not acess if I am in india so I can only access page in India, can any one help me to do a code in javascript please give me the code and example for it
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
When your page gets load (
www.mypage.com
), detect the country of visitor. Once the country is identified, redirect the user on country specific web page. such aswww.mypage.com/india
,www.mypage.com/dubai
orwww.mypage.com/france
.If the country is not identified, don't do anything and let the visitor on the same/default page (
www.mypage.com
)How to detect the country?
ipapi.medium.com/ip-address-locati...
db-ip.com/tutorials/javascript-get...