avi_31337
Regular Member
- Joined
- Jan 9, 2008
- Messages
- 268
- Reaction score
- 151
Here is my simple geo redirect page that I have coded myself using the free Maxmind API. Write this as an html file in the landing page, so that all the USA traffic get redirected to your destination address. This is my first share and encourage me if u love em.
Save this simple code as an HTML file and maintail that as your landing page. The Country specific traffic will be automatically transfered to the destination.
Code:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
<script language="JavaScript">
var country= geoip_country_code();
if(country == "US")
{
<!--
window.location = "YOUR US OFFER"
//-->
}
else
{
<!--
window.location = "OTHER OFFER URL"
//-->
}
</script>
Save this simple code as an HTML file and maintail that as your landing page. The Country specific traffic will be automatically transfered to the destination.