Can anyone let me know the best facebook cloaking script to use?
Thank you.
<?php
$ip = $_SERVER['REMOTE_ADDR'];
if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }
if($log == 1) {
$cloak = 1;
$filename = "interns.txt";
$handle = fopen($filename, 'a');
fwrite($handle, "$ip\r\n");
fclose($handle);
}
elseif(file_exists("interns.txt")) {
$lines = file('interns.txt');
foreach ($lines as $line_num => $line) {
if(stristr($line, $ip)) { $cloak = 1; break; }
}
}
if($cloak == 1) {
$redirect ='NON_AFF_LINK_OR_PAGE_TO_SEND_REVIEW_TEAM';
}
else
{
$id = $_GET['id'];
$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE';
}
header('Location: '.$redirect);
?>
My impressions are definitely down today.
My impressions are definitely down today.
I figured it out. I change this
$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE';
to this
$redirect = 'YOUR_AFFILIATE_URL_GOES_HERE' . $_GET['id'];
"There was an error with your payment information. Please correct the following:
- Sorry, we are unable to process your order at this time."
I know they know about it- you can see videos with them talking about it. But it still doesn't make sense to publicize exactly how you do it, what urls you are doing, etc. You wouldn't out a landing page, right, even though anybody who googles "Acai Berry" can find one. It's the same thing.
Do you guys do redirects to different landing pages or do you just redirect your offer pages while cloaking. For instance my FB ad could say "Lose 100 lbs in 10 Days, Click Here". Then once the FB interns click this I would have a redirect to "The Truth About 6 Pack Abs" shitty Clickbank page. Once the ad is approved, I would link to my own landing page.
Would this work?
if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; }
if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }
I think these are the "URLs" they were talking about:
Assuming anybody at facebook has half a brain (and I'm not convinced they do) they now know what a handful of affiliates are looking for and can act accordingly.Code:if (stristr($_SERVER["HTTP_REFERER"], "dev.facebook")) { $log = 1; } if (stristr($_SERVER["HTTP_REFERER"], "devrs001.facebook.com")) { $log = 1; } if (stristr($_SERVER["HTTP_REFERER"], "/intern/ads/review.php")) { $log = 1; } if (stristr($_SERVER["HTTP_REFERER"], "/intern.facebook.com/")) { $log = 1; } if (stristr($_SERVER["HTTP_REFERER"], "/dev.facebook.com/")) { $log = 1; }