GEO IP Redirect Script

hunar

Regular Member
Joined
Jan 1, 2009
Messages
489
Reaction score
184
Hi, I'm just wondering if anyone would be able to create a GEO IP redirect Script. I need something like if user Clicks to buy product and they are from Us, CA, NZ, UK They will go to offer A. All others will go to Offer B.

I'm looking for something very simple Where I don't have to create pages for each country code cause putting that on 200+ sites would literally take months.

I'd be willing to pay as well. Just throw me a PM or Just reply in thread. :)
 
Not to toot my own thread or anything, but GEOIP right here -

Code:
http://www.blackhatworld.com/blackhat-seo/black-hat-seo/268255-cpa-redirector-2-1-modded-geoip-variable-passing-url-rotation.html

Which I cobbled together from another post here somewhere...do a little digging and you'll find it if the above doesn't work...

HTH
ND
 
yup.. that can help you out...

Not to toot my own thread or anything, but GEOIP right here -

Code:
http://www.blackhatworld.com/blackhat-seo/black-hat-seo/268255-cpa-redirector-2-1-modded-geoip-variable-passing-url-rotation.html
Which I cobbled together from another post here somewhere...do a little digging and you'll find it if the above doesn't work...

HTH
ND
 
Here's how I've done it in the past.

PHP:
$ip = $_SERVER['REMOTE_ADDR'];
$country = file_get_contents("api.hostip.info/country.php?ip=$ip");

Pretty simple. I would also make sure that the user isn't using a proxy. Check that like this:

PHP:
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //IP is likely from Proxy
 
Back
Top