Your skill will accomplish
what the force of many cannot
How to check the origin ofi a visitor?by cranberry13 (Beadle)
|on Jun 19, 2004 at 21:08 UTC
cranberry13 has asked for the wisdom of the Perl Monks concerning the following question:
I need to determine which country a person is coming from. Isn't there an environment variable that can determine this for me? Do I need to take the ip address and do something with it? Any suggestions would be appreciated. Thank you. Some more notes: Basically, I *do not* want people in the middle east to see an 'advert' on one of our websites but I do want people in europe and America to see the advert. All the webpages on our website are 'dynamic' -- So I want to check approximately where the user is coming from. If they're in the middle east (Jordan, Israel, Saudi ARabia, etc) then do not display the advertisement. Anywhere else is fine. I do not want to ask the user where they are.