Hide Original Referrer Script

genjutsu why do you post stuff if you havent tested it before

i dont want to be rude but still please test it before you post it
 
moron? Are oyu sure, I was not banned but my acct was closed and that heppened to thousands of people

are they all morons?
I already have your ebook, but have not read it
 
sweet!! thank you genjutsu I'v been look for some thing like .
 
With one teeny tiny fix this code works beautifully, Genjutsu = Genius :)

I'm ONLY mentioning this for those who are pretty clueless about coding.

The second block of code (for site B), the line if($_SERVER['HTTP_REFERER' == $site1) is missing an end bracket ] after $_SERVER['HTTP_REFERER'.

The line should read:
if($_SERVER['HTTP_REFERER'] == $site1)

That's it!

Beautiful share Genjutsu, many thanks!
 
Even with the ] fix, still something is wrong...

For some reason, it isn't working for me... lands them on my wanted referral site but doesn't redirect to CPA offer....
 
Even with the ] fix, still something is wrong...

For some reason, it isn't working for me... lands them on my wanted referral site but doesn't redirect to CPA offer....

It's different depending on browsers. Which browser are you using?
 
Genjutsu's code works perfectly IE, FF, Opera and Chrome for me. Check your spelling and syntax. Every character has to be right.

edit: Oh, and make sure you have javascript enabled. :)

Now all I need to do is figure out how to do a check for javascript being active and bounce the ones that have it turned off to a double meta refresh.

Occasionally having a blank referrer would make perfect sense. type in or bookmark traffic happens occasionally and that doesn't pass a referrer.

One step closer to world domination. Thanks Genjutsu.
 
Ok, I checked again but no use.

I should have mentioned earlier that the page I want to act as the referral, is my wordpress blog. Maybe that's the reason for some reason. That means I had to edit its index file there. Doesn't redirect to affiliate offer, but only lands you on the blog.
 
Ok, I checked again but no use.

I should have mentioned earlier that the page I want to act as the referral, is my wordpress blog. Maybe that's the reason for some reason. That means I had to edit its index file there. Doesn't redirect to affiliate offer, but only lands you on the blog.

Sounds like you need to do redirects for you blog links and stick the code in there.

So, on your legitimate looking blog page you have "if you like to try blah blah, >click here>"

Your code for the link would be something like <a href="yoursite.com/links/whereyouwantthemtogo.php">blah</a>

then you create a links directory
then whereyouwanttogo.php contains the conditional from Genjutsu's code with an else clause Like so:

Code:
<?php

$site1 = "http://www.site1.com";
$thissite = "http://yourblogname.com/appropriatepost.html";
$affiliate_link = "http://www.youroffer.com";

if($_SERVER['HTTP_REFERER'] == $site1)
{
	echo "<body onload=\"javascript:frmClickTracking.submit();\">";
	echo "<form action=\"" . $affiliate_link . "\" method=\"post\" name=\"frmClickTracking\">";
	echo "</form>";
}

elseif ($_SERVER['HTTP_REFERER'] == $thissite)

     {
    echo "We're sorry there was a problem with the server. Please click this link.";
    echo "<a href=\"http://youraffiliatelink.com\">click here<a>";
    }
else
    echo "<META http-equiv=\"refresh\" content=\"0;URL=http://www.yourafflink.com"> ";

?>

I'm not sure about the syntax in the elseif statement but I'll check it out when I get a chance.

Anyway, if I'm seeing this right, any traffic coming from your original site will now redirect showing yoursite/whereyouwantogo.php as the referrer. Put one in the win column.

If you put up a blog post and click the link (links/whereyouwant.php), it will show your site as the referrer BUT only if they click the new link generated by the "server error." What will be passed isn't the original blog post, but the /links/etc part.

This is important because I would imagine the first thing an AM would do is just type in the link. http://www.yoursite.com/whereyouwantthemtogo.php.

If an AM types this in directly, they'll just get an instant redirect to the merchant's page with a blank referrer. They'll go, "hmmmm" and go look around your blog for a related post.

They'll see the link in the post.

Click it.

And what shows up in their report is exactly the same link that will appear from your blackhat traffic.

Another one in the win column.

I suppose you could also use the javascript directly from the blogpost also. Probably any number of ways to do this actually.

I'll actually try to test all this out this weekend.

This was an "off the top of my head" thing while I was at work.

If you get a chance to try it, let me know if it works out.
 
Last edited:
Bah, too late to edit.

After giving it some thought, you'd probably want to be a bit more creative with the error text. Something official looking: "Error: sys.db.guesttrack. #E3327. Parsing error in function (save_local_IP): unexpected "," in query, line 3.

The link you are trying to reach is http://www.yourafflink.com. The system administrator has been notified."

This means absolutely nothing (as far as I know) but it would appear like you have some kind of tracking software running that went kerflooey and gracefully failed by generating a plain old ugly html link.

If the AM says anything, you "get to it as soon as you can" and well the rest is up to you: stop running the offer, change it etc.

Good luck
 
Thanks pal! will give it a shot as soon as I get some time. I think I got what you mean.

I'm actually trying to implement this for some youtube cpa marketing campaigns. I want my cpa AM to think traffic is coming from my main blog. I think that is necessary instead of a non related page that redirects to their offer.

If this works well with my blog, then I'll also get back to real CS biz that I've dropped a while back.


Bah, too late to edit.

After giving it some thought, you'd probably want to be a bit more creative with the error text. Something official looking: "Error: sys.db.guesttrack. #E3327. Parsing error in function (save_local_IP): unexpected "," in query, line 3.

The link you are trying to reach is www.yourafflink.com. The system administrator has been notified."

This means absolutely nothing (as far as I know) but it would appear like you have some kind of tracking software running that went kerflooey and gracefully failed by generating a plain old ugly html link.

If the AM says anything, you "get to it as soon as you can" and well the rest is up to you: stop running the offer, change it etc.

Good luck
 
I have implemented this script successfully (Gen's), I do have one question if someone can answer it. Is there a way to speed the redirect up? What I mean is that it actually almost completely loads page 2 before redirecting to the Aff page. I would like for my traffic not to see it at all.
 
scottb99,
what I've noticed is that redirects are pretty quick if the site is getting a decent amount of traffic. They seem to slow down when traffic is slow. I'm guessing it is due the the server conserving resources. So keep the traffic flowing and then you should be ok.
 
damn, i wish to hell that i knew what you guys are talking about. i am missing a lot of money by being ignorant to this.

i dont even know where to begin to start learning it....
 
no matter what i do i cant get site2 to redirect to affiliateoffer .. I have made sure an checked everything many times. Site a redirects to site b no problems site b just load blank page doesnt pass on ..any ideas. like i said i have triple traced everything ...ideas?
 
I finally got it!!

Is their any way to use an img to call this action?

I tried redirecting the image using htaccess to site 1 then site 2 then affiliate site. It didn't work because it was carrying the referral site from where the image was.

To correct that I did image (redirect) to page with an iframe with site 1 in it and it redirects to site 2 then to affiliate. It worked to my surprise!! But it only worked when I went directly to the image.

Is there a way I can put the image on a different site which redirects to iframe then to site 1 then site 2 then affiliate? When I tried it, It stopped at site 1.

any suggestions??
 
Back
Top