Home > Questions and Answers > General Questions

Cloaking Experts! DMR or SSL or Both? (1)


08-09-2012 03:51 AM #1 kfeng113 (Member)
Cloaking Experts! DMR or SSL or Both?

Hey Guys,

I'm new to cloaking and generally I try to stay away from blackhat stuff. The advertiser is super strict on their end and our traffic is backing out really well for them, but I'm told they don't mind stiffing affiliates for the hell of it. I'm working close with the network manager and AM to make sure we're good. My question is:

Should I do:

1. Double Meta Refresh (adds load time)
2. Host my LP on SSL (adds load time)

or both? If I do both, will it hide 100% of my referrers?

Also, I'm a little bit of a PHP newb, how would I incorporate the DMR into my landing page flow?


I'm looking to do this in the mobaff tracker which works in this fashion WITHOUT DMR

1. Affiliate Link Placed Inside Mobaff Tracker (my landing page with subid token appended)

Code:
http://www.mydomain.com/index.php&subid=[subid]
2. Place PHP script at top of index.php to pass Subid


Code:
<?php

$subid = $_GET['subid'];

//OFFER NAME

$link1 = 'http://www.affnetworkexample.com/1234/?aff_sub=' . $subid;

?>

(also change hrefs to
Code:
<a  href="<?php echo ($link1);?>">Click Here Now</a>
in index.php)



Turtle Mentions in one of his previous posts on how to DMR:

Quote Originally Posted by turtle View Post
Here's how you do a DMR without the need for prosper... First create two separate files to save to your root of your server... We will call them index.php and index2.php.

File 1: index.php
[PHP]<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yoursite.com/index2.php\">";
?>[/PHP]

File 2: index2.php
[PHP]<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yoursite.com\">";
}
?>[/PHP]

Simply upload both files to your root directory and send your traffic to the index.php file on your website. Sometimes browsers leak referrer info anyway... The second index file should help to prevent that by checking if the referrer is blank prior to redirecting.
So if my logic is correct here, all I need to ensure is that the subid is passed in index2.php

Is the code correct on index.php & index2.php



File 1: index.php

PHP Code:


Code:
<?php

$subid = $_GET['subid'];

//OFFER NAME

$link1 = 'http://www.affnetworkexample.com/1234/?aff_sub=' . $subid;

?>

Code:
<?php 
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yoursite.com/index2.php\">"; 
?>

File 2: index2.php

PHP Code:

Code:
<?php

$subid = $_GET['subid'];

//OFFER NAME

$link1 = 'http://www.affnetworkexample.com/1234/?aff_sub=' . $subid;

?>

Code:
<?php 
$referer = $_SERVER['HTTP_REFERER']; 
if($referer == "") 
    { 
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";     
    } 
else 
    { 
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yoursite.com\">";     
    } 
?>

Ugh something tells me this isn't right because I'm just using the same subid PHP code in index.php AND index2.php


Home > Questions and Answers > General Questions