Anyone see any flaws in my cloaking code? I can't seem to get anything by. It started from Nicky Cakes code then I tried to add all the other reviewers.
<?php
$cloaked_url = "http://www.google.com"; // devs go here
$normal_url = "http://www.yahoo.com"; // everyone else goes here
$tracking_ref = $_SERVER['HTTP_REFERER'];
if(strpos($tracking_ref,"dev.facebook")){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "non affili site" );
} else {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "affili site" );
}
if(strpos($tracking_ref,"devrs001.facebook.com")){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "non affili site" );
} else {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "affili site" );
}
if(strpos($tracking_ref,"/intern/ads/review.php")){
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "non affili site" );
} else {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . "affili site" );
}
?>