|
|
|
Do NOT buy anything from MASS PM Messages Asking you to buy IMA Products YOU HAVE BEEN WARNED!! (If you have REFUND IMMEDIATELY)
 |

11-19-2008, 04:13 PM
|
|
Newbie
|
|
Join Date: Nov 2008
Location: USA
Posts: 25
Reputation: 10
Thanks: 2
Thanked 5 Times in 2 Posts
|
|
Send Traffic Through Site As Referer
I'd like to send traffic from ads placed on another site. I would like the traffic to appear to come from a static page on my website.
If the visitor clicks link on orig site:
orig site link > my site > my site landing page > aff site (all automatically)
If the visitor goes directly to my site landing page it appears as a static landing page, no auto redirect.
Any thoughts how to do this?
thanks!
|
Make Money!

11-19-2008, 06:26 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
This is definitely possible with some creative PHP coding
This is what will happen:
-User clicks the advertisement on the original site
-The user will land on PAGE1 of your site, which will have a javascript redirect to PAGE2 (javascript redirects yield a referer that equals the page it's on)
-PAGE2 two will check the referer to see where the user came from. If they came from PAGE1, then the page will display another javascript redirect to send them to your affiliate site. (With PAGE2 being the referer.) If they came from anywhere else, the page will display its normal static content.
It is also possible to send the orig ad directly to page two, assuming you know all the places your ad will be displaying. (And so what referer the user will have when they click it.) This depends fully on how the ads work/where they are--but the method I listed with 2 pages should work in any case.
|

11-19-2008, 06:35 PM
|
 |
Junior Member
|
|
Join Date: Nov 2008
Posts: 125
Reputation: 10
Thanks: 58
Thanked 35 Times in 16 Posts
|
|
Re: Send Traffic Through Site As Referer
Anybody got any scriptage on this? Am very interested...
|

11-19-2008, 06:57 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
I'll put up some sample PHP code in about 4ish hours. (Don't have time atm.)
|

11-20-2008, 01:38 AM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
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):
<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 //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 01:45 AM..
|
|
The Following 4 Users Say Thank You to drkenneth For This Useful Post:
|
|

11-20-2008, 01:45 AM
|
|
Executive VIP
|
|
Join Date: Apr 2008
Posts: 66
Reputation: 11
Thanks: 119
Thanked 21 Times in 9 Posts
|
|
Re: Send Traffic Through Site As Referer
Hmm that's pretty neat. I used .htaccess, auto form submit with javascript and php to create mine.
G-Man
|

11-20-2008, 06:23 AM
|
|
Newbie
|
|
Join Date: Nov 2008
Location: USA
Posts: 25
Reputation: 10
Thanks: 2
Thanked 5 Times in 2 Posts
|
|
Re: Send Traffic Through Site As Referer
I'm getting an error on line 6 of the second page...
Parse error: syntax error, unexpected T_SL in xxxxxxxxxxxxx on line 6
|

11-20-2008, 06:37 AM
|
|
Registered Member
|
|
Join Date: Nov 2008
Posts: 62
Reputation: 10
Thanks: 4
Thanked 8 Times in 4 Posts
|
|
Re: Send Traffic Through Site As Referer
htaccess do the same as php code, i tried
|

11-20-2008, 02:32 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
Quote:
Originally Posted by kraze98nyc
I'm getting an error on line 6 of the second page...
Parse error: syntax error, unexpected T_SL in xxxxxxxxxxxxx on line 6
|
Quote:
T_SL is the /T/oken for the /S/hift /L/eft operator (<<).
so "unexpected T_SL" means there is an occurence of << that is
syntactically incorrect. this commonly happens when you use heredoc
syntax ("<<<") and have whitespace before or after the closing
identifier. see
http://www.php.net/manual/en/languag...guage.types.st
ring.syntax.heredoc for details.
|
So, make sure the final identifier (the three <<<) does not have any whitespaces before or after it--it's picky.
|

11-20-2008, 04:21 PM
|
|
Newbie
|
|
Join Date: Nov 2008
Location: USA
Posts: 25
Reputation: 10
Thanks: 2
Thanked 5 Times in 2 Posts
|
|
Re: Send Traffic Through Site As Referer
Still not working for me... i fixed the line but your website version isnt working either.... hmmm
|

11-20-2008, 06:15 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
Hmm... weird. I am hosting that same code on my site and it's working fine. Still the same error?
|

11-20-2008, 07:50 PM
|
|
Newbie
|
|
Join Date: Nov 2008
Location: USA
Posts: 25
Reputation: 10
Thanks: 2
Thanked 5 Times in 2 Posts
|
|
Re: Send Traffic Through Site As Referer
Works in firefox, not IE7 for me... anyone else have the same problem?
|
Upgrade Today!

11-20-2008, 07:54 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
Oh so it's an actual webbrowser issue? Does it give an error or just not work?
|

11-20-2008, 08:44 PM
|
|
Newbie
|
|
Join Date: Nov 2008
Location: USA
Posts: 25
Reputation: 10
Thanks: 2
Thanked 5 Times in 2 Posts
|
|
Re: Send Traffic Through Site As Referer
when starting at bouncer5.php, in firefox it works as it should.
In IE it goes until the content5.php and stops there.
|

11-20-2008, 09:20 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
Perhaps you have javascript disabled in IE? (Hence causing the redirect not to work.)
In this case you can just add a normal link saying "Proceed" or something on the redirect page so that people w/o javascript enabled can still get where they're going AND still show that page as the referer.
|

11-20-2008, 10:06 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
IE7 does not handle javascript redirect referers the same way, so here's a revised version of my script:
The first page is simple--redirects you to the 2nd page (one that will appear to have content):
<body onload="javascript:frmTaco.submit();">
<form action="content5.php" method="get" name="frmTaco">
</form>
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 //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 <body onload="javascript:frmTaco.submit();"> <form action="referer.php" method="get" name="frmTaco"> </form> 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; } ?>
Hope that helps anyone who was having any problems in IE7. Enjoy
|
|
The Following User Says Thank You to drkenneth For This Useful Post:
|
|

11-26-2008, 09:32 AM
|
|
Newbie
|
|
Join Date: May 2008
Posts: 27
Reputation: 10
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Re: Send Traffic Through Site As Referer
thank you for the information this is very good information which help me i to increased our knowledge.
|

11-30-2008, 01:26 AM
|
|
Jr. VIP
|
|
Join Date: Aug 2007
Posts: 182
Reputation: 10
Thanks: 2
Thanked 5 Times in 4 Posts
|
|
Re: Send Traffic Through Site As Referer
does this work? and can the affiliate check source code and see something fishy
|

11-30-2008, 06:29 PM
|
 |
No, I'm not a doctor.
|
|
Join Date: Nov 2008
Location: USA
Posts: 186
Reputation: 15
Thanks: 5
Thanked 67 Times in 39 Posts
|
|
Re: Send Traffic Through Site As Referer
Quote:
Originally Posted by bvb
does this work? and can the affiliate check source code and see something fishy
|
Nope. The decision of what is sent to the user is done serverside. I.E. when the page is visited the normal page will display. There will be NOTHING fishy they will be able to look at. (Including source.) The only way for them to see the page acts as a redirect is if they find the original ad/link somehow and actually go through the bounces.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|