Y T Nuke  
Results 1 to 21 of 21
I'd like to send traffic from ads placed on another site. I would like the ...
  1. #1
    kraze98nyc is offline Newbies
    Join Date
    Nov 2008
    Location
    USA
    Age
    32
    Posts
    26
    Reputation
    10
    Thanks
    2
    Thanked 5 Times in 2 Posts

    Default 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!

  2. #2
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default 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.

  3. #3
    swinter84's Avatar
    swinter84 is offline Junior Member
    Join Date
    Nov 2008
    Posts
    152
    Reputation
    18
    Thanks
    133
    Thanked 101 Times in 44 Posts

    Default Re: Send Traffic Through Site As Referer

    Anybody got any scriptage on this? Am very interested...

  4. #4
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default Re: Send Traffic Through Site As Referer

    I'll put up some sample PHP code in about 4ish hours. (Don't have time atm.)

  5. #5
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    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 01:45 AM.

  6. 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)

  7. #6
    GeoffreyF67 is offline RIP OUR BELOVED FRIEND AND MEMBER
    Join Date
    Apr 2008
    Age
    44
    Posts
    173
    Reputation
    28
    Thanks
    278
    Thanked 116 Times in 28 Posts

    Default 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

  8. #7
    kraze98nyc is offline Newbies
    Join Date
    Nov 2008
    Location
    USA
    Age
    32
    Posts
    26
    Reputation
    10
    Thanks
    2
    Thanked 5 Times in 2 Posts

    Default 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

  9. #8
    dekadent30 is offline Junior Member
    Join Date
    Nov 2008
    Posts
    175
    Reputation
    10
    Thanks
    12
    Thanked 30 Times in 15 Posts

    Default Re: Send Traffic Through Site As Referer

    htaccess do the same as php code, i tried

  10. #9
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default Re: Send Traffic Through Site As Referer

    Quote Originally Posted by kraze98nyc View Post
    I'm getting an error on line 6 of the second page...

    Parse error: syntax error, unexpected T_SL in xxxxxxxxxxxxx on line 6
    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. #10
    kraze98nyc is offline Newbies
    Join Date
    Nov 2008
    Location
    USA
    Age
    32
    Posts
    26
    Reputation
    10
    Thanks
    2
    Thanked 5 Times in 2 Posts

    Default Re: Send Traffic Through Site As Referer

    Still not working for me... i fixed the line but your website version isnt working either.... hmmm

  12. #11
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default 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?

  13. #12
    kraze98nyc is offline Newbies
    Join Date
    Nov 2008
    Location
    USA
    Age
    32
    Posts
    26
    Reputation
    10
    Thanks
    2
    Thanked 5 Times in 2 Posts

    Default Re: Send Traffic Through Site As Referer

    Works in firefox, not IE7 for me... anyone else have the same problem?

  14. #13
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default Re: Send Traffic Through Site As Referer

    Oh so it's an actual webbrowser issue? Does it give an error or just not work?

  15. #14
    kraze98nyc is offline Newbies
    Join Date
    Nov 2008
    Location
    USA
    Age
    32
    Posts
    26
    Reputation
    10
    Thanks
    2
    Thanked 5 Times in 2 Posts

    Default 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.

  16. #15
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default 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.

  17. #16
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default 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):
    HTML Code:
     <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 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
     <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

  18. The Following User Says Thank You to drkenneth For This Useful Post:

    asprind (12-10-2008)

  19. #17
    marketraise is offline Newbies
    Join Date
    May 2008
    Posts
    25
    Reputation
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default 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.

  20. #18
    bvb
    bvb is offline Jr. VIP
    Join Date
    Aug 2007
    Posts
    244
    Reputation
    10
    Thanks
    13
    Thanked 9 Times in 8 Posts

    Default Re: Send Traffic Through Site As Referer

    does this work? and can the affiliate check source code and see something fishy

  21. #19
    drkenneth's Avatar
    drkenneth is offline Executive VIP
    Join Date
    Nov 2008
    Location
    USA
    Posts
    285
    Reputation
    26
    Thanks
    20
    Thanked 167 Times in 79 Posts

    Default Re: Send Traffic Through Site As Referer

    Quote Originally Posted by bvb View Post
    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.

  22. #20
    binkage is offline Newbies
    Join Date
    Jan 2010
    Posts
    6
    Reputation
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Send Traffic Through Site As Referer

    Greetings,

    I am running the same exact link redirect setup but it is done in php. Is there some way to make this happen purely in php and php headers? I was successful doing this in curl but I lose the IP information, which looks fishy to affiliates. I am not allowed to use Javascript, meta tags or any other html.

    Let me know if this can be done.

    Thanks
    Kind regards

  23. #21
    R4z0r is offline BANNED
    Join Date
    Mar 2010
    Location
    127.0.0.1
    Age
    36
    Posts
    33
    Reputation
    7
    Thanks
    4
    Thanked 15 Times in 9 Posts

    Default Re: Send Traffic Through Site As Referer

    not a good method as its visible (partly) in the source code. i have something totaly invisible in php. 50 usd and its yours. pm me

AdStract


Advertise on Black Hat World

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75