Welcome to WebmasterWorld Guest from

Forum Moderators: eljefe3 & skibum

Message Too Old, No Replies

Artificial geo targeting for Chitika and Adsense

Anyone know how to write a script for that?

3:20 am on Nov 19, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2004
votes: 0

Well, Chitika doesn't accept clicks from outside US etc.. Is it possible to write a script so that traffic outside USA will see google ads instead?
4:00 pm on Nov 19, 2005 (gmt 0)

New User

10+ Year Member

joined:July 4, 2005
votes: 0

function geolocation()
$gi = geoip_open('./GeoIP.dat', GEOIP_STANDARD);
$countrycode = geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']);
return in_array($countrycode, array('US', 'GB', 'FR', 'CA', 'AU', 'NZ'));

Returns true if user is from supported country.

You'll need:

7:26 am on Nov 20, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 21, 2004
votes: 0

You can simply use PhpAdsNew

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members