get the country of visitor and display content based on that


Posted on 16th Feb 2014 07:03 pm by admin

Hello all,

I have seen that Google analytics can tell you where a visitor is coming from and I want to do something similar. But I would like to add the functionality of redirecting a user based on his location

Did you know?Explore Trending and Topic pages for more stories like this.
Example:
if a users location is from the "US" I would like to redirect all the links on the site to include /us/ after the domain. If the user comes from anywhere outside the US is would like the links to be normal.

Any Ideas??
No comments posted yet

Your Answer:

Login to answer
220 Like 19 Dislike
Previous forums Next forums
Other forums

How to assign a textbox value to PHP variable??
Hi ! Can any one help me out as quickly as possible. As I m new to PHP.
Plz tell me how to assign

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

does anyone know a php script to send mail using gmails/googles free smtp server
cause i heard u can do that but i dont know how

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d

Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a

textfield unchanged
hi,
i want my form to know whether its textbox is unchange or not.

if($textbox == 'unchang

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

Preserving user-entered linebreaks
Hi, I'm building a web 2.0 thingy from scratch and I wanna display text which users input. It's all

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash