shellhackx
Regular Member
- Sep 15, 2011
- 210
- 112
Hello,
I ran into some problems.
I am trying to promote some CPA offers on FB.
The problem is I am using Peerfly offers and directing the traffic from FB to a website that redirects the traffic according to country to the appropriate Peerfly CPA offer.
Using this script and having it as the index.php of this domain, nothing else.
-----------------------------------------------------------------------------------------------
<?php
include("geoip.inc");
$ip=$_SERVER['REMOTE_ADDR'];
$gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
$country_code = geoip_country_code_by_addr($gi, "$ip");
// Country name is not used so commented
// Get Country Name based on source IP
//$country = geoip_country_name_by_addr($gi, "$ip");
geoip_close($gi);
switch($country_code)
{
case "US": header("Location: http://trkur.com/trk?"); break;
case "AT": header("Location: http://trkur.com/trk?"); break;
default: header("Location: http://trkur.com/trk?");
}
?>
----------------------------------------------------------------
I tried using tiny url to cloak the domain name but FB always detects the CPA offer and says http://trkur.com links are not aloud ( Peerfly links)
How can I get around this so FB cant detect the peerfly links?
Thank you very much for the help.
I ran into some problems.
I am trying to promote some CPA offers on FB.
The problem is I am using Peerfly offers and directing the traffic from FB to a website that redirects the traffic according to country to the appropriate Peerfly CPA offer.
Using this script and having it as the index.php of this domain, nothing else.
-----------------------------------------------------------------------------------------------
<?php
include("geoip.inc");
$ip=$_SERVER['REMOTE_ADDR'];
$gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
$country_code = geoip_country_code_by_addr($gi, "$ip");
// Country name is not used so commented
// Get Country Name based on source IP
//$country = geoip_country_name_by_addr($gi, "$ip");
geoip_close($gi);
switch($country_code)
{
case "US": header("Location: http://trkur.com/trk?"); break;
case "AT": header("Location: http://trkur.com/trk?"); break;
default: header("Location: http://trkur.com/trk?");
}
?>
----------------------------------------------------------------
I tried using tiny url to cloak the domain name but FB always detects the CPA offer and says http://trkur.com links are not aloud ( Peerfly links)
How can I get around this so FB cant detect the peerfly links?
Thank you very much for the help.