MarketerX
Regular Member
- Mar 7, 2010
- 404
- 125
Hey all, just a quick question before I start a campaign. I have a link on Site A, leading to Site B (email submit affiliate link). I don't want Site B to ever see Site A in their refferer logs.
So, I created an intermediate Site C. On Site C, I have this very simply PHP + Javascript.
So, if I access Site C and append the secret parameter ?token="secret", it will redirect too my affiliate link, showing Site C instead of Site A as the referrer. Accessing Site C without the secret token means the redirect will never happen. Also PHP is hidden from View Source, so someone cannot go to Site C and see the code above.
Is this all correct and leak proof? I believe all major browsers support this code.
Clicking thanks button on best answer.
So, I created an intermediate Site C. On Site C, I have this very simply PHP + Javascript.
Code:
<html>
<body>
<?php
if ($_GET["token"] == "secret") {
echo "<script>";
echo "window.location.href = "http://afflinkhere.com";
echo "<script>"
}
?>
</body>
<html>
So, if I access Site C and append the secret parameter ?token="secret", it will redirect too my affiliate link, showing Site C instead of Site A as the referrer. Accessing Site C without the secret token means the redirect will never happen. Also PHP is hidden from View Source, so someone cannot go to Site C and see the code above.
Is this all correct and leak proof? I believe all major browsers support this code.
Clicking thanks button on best answer.
Last edited: