View Single Post
  #5 (permalink)  
Old 11-20-2008, 02:38 AM
drkenneth's Avatar
drkenneth drkenneth is offline
Executive VIP
 
Join Date: Nov 2008
Location: USA
Posts: 285
Thanks: 20
Thanked 166 Times in 79 Posts
Reputation: 24
iTrader: (0)
Default Re: Send Traffic Through Site As Referer

The first page is simple--redirects you to the 2nd page (one that will appear to have content):
HTML Code:
<script language=Javascript>
  window.location.href='content5.php';
</script>
The second page shows content if the referer isn't the 1st page. If it is, then it sends them to the destination. (In this case it's the referer.php script.)
PHP Code:
<?php
//Compare the referer to the page they SHOULD come from
if ( $_SERVER['HTTP_REFERER'] == "http://www.drkenneth.mobi/demos/bouncer5.php" || $_SERVER['HTTP_REFERER'] == "http://drkenneth.mobi/demos/bouncer5.php" )

{
//Bounce the user to the destination  
print <<<END
  <script language=Javascript>
    window.location.href='referer.php';
  </script>
END;
}
else
{
//Act innocent--they didn't come through the bounce!
print <<<END
Hey!<br>
This is an innocent little page!<br>
No scripts or anything!<br>
Just lots of awesome content!<br>
People are just going to click links and buy stuff, cuz we have REAL traffic from HERE!<br>
Just a nice, happy, user friendly referral link to <a href="referer.php">referer.php</a><br>
See, click it! It's what all your viewers are doing!
END;
}
?>
referer.php is the final landing page--ie your affiliate


Here is a demo I'm temporary hosting:
http://www.drkenneth.mobi/demos/bouncer5.php (page 1, i.e. the page you'd link an ad to)
http://www.drkenneth.mobi/demos/content5.php (page 2, if you go right to it it's just innocent content )
http://www.drkenneth.mobi/demos/referer.php (the affiliate--will see page 2 as the referer)

These are safe to look at--do not load any affiliates or anything bad.

BTW: I am currently creating an application to make generating advanced bouncer scripts like this (and MUCH more complicated) quick and easy--so if you have any other ideas/good features for bouncers let me know

Enjoy
+rep/thanks is apprecaited

Last edited by drkenneth; 11-20-2008 at 02:45 AM.
Reply With Quote
The Following 4 Users Say Thank You to drkenneth For This Useful Post:
asprind (12-10-2008), bathgate (11-30-2008), GeoffreyF67 (11-20-2008), Gogeta (11-20-2008)