08
Facebook Cloaking Part 2
Posted by admin | Posted in Branding | Posted on 08-10-2008
The other day I published my Facebook cloaking script. Well, I actually use two, since I use each for a different reason. Here is the second one I use, they both cloak the same people, but you can use them in different ways, or on different files. For example, if I was using a jump file, then I would use the script I posted before, but this one below you can just paste into the head of the landing page or if it is Wordpress into the header file or index.php file.
<?
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match(”/intern.facebook.com/”,$referrer)) {
header(’Location: http://www.urlforfacebooktosee.com/’);
} elseif (preg_match(”/dev.facebook.com/”,$referrer)) {
header(’Location: http://www.urlforfacebooktosee.com/’);
};
?>


















