Hi i am using this code found here in this forum i just need a little help with this ,as this code will first redirect from url1 to url2 , and then from url2 to mine affiliate link , but the problem is that it check wether the url2 refferer is NULL if yes then goes to the affiliate link otherwise will not go for affiliation link, so CPA would never know from where traffic comes from , i want to add mine custom refferer when being redirected to afiiliation link, so they can see from where traffic comes from.
Code used is here:
URL1:
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";
?>
URL2:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";
}
?>
Hope i will get help soon as i saw this forum is full will genious guys.
thanx
Code used is here:
URL1:
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";
?>
URL2:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";
}
?>
Hope i will get help soon as i saw this forum is full will genious guys.
thanx
Last edited: