1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does Referrer show when redirected?

Discussion in 'General Scripting Chat' started by friendproject, Nov 17, 2011.

  1. friendproject

    friendproject Newbie

    Joined:
    Jun 30, 2008
    Messages:
    12
    Likes Received:
    0
    When I show an offer on my own domain, buy including the CPA's javascript on my site, how can I make it where they can not see where the traffic came from, I mean if I send my traffic to a page on my site that then redirects to another page that has the ad code on it, will it show that it came from my other page or from the main source?
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,479
    Likes Received:
    10,232
    You will have to create a script to blank the referrer before it reaches your page. Search around the forum, many such scripts have been posted in the past.
     
  3. tylerdale80

    tylerdale80 Registered Member

    Joined:
    Nov 28, 2008
    Messages:
    58
    Likes Received:
    10
    if u are using a simple javascript redirect such as
    Code:
    <script type="text/javascript">
    <!--
    window.location = "http://www.example.com/";
    //-->
    </script>
    , it will show the referring page. A meta refresh such as
    Code:
    <meta http-equiv="refresh" content="2;url=http://example.com/"> 
    will blank the referrer. If you want to blank the referrer with php, code or find one with 301 redirect as 302 redirect will show referrer.
    However blanking the referrer is not a good way to hide your traffic source as it will only make you look suspicious. CPA companies know most scammers blank their referrers.
    You have to bring it to the next level by spoofing your referrers.
    Here is a great script that allows you to fake your referrers.
    http://www.blackhatworld.com/blackhat-seo/making-money/319585-tut-code-how-fake-your-referer-fake-referer-any-offer-fake-referrer-script.html
     
    • Thanks Thanks x 1
  4. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,479
    Likes Received:
    10,232
    The above trick will not blank the referrer in all major browsers. You need a server side script on that will check if the referrer was actually blanked or not and decide where to move the traffic.
     
    • Thanks Thanks x 1
  5. tylerdale80

    tylerdale80 Registered Member

    Joined:
    Nov 28, 2008
    Messages:
    58
    Likes Received:
    10
    Thanks for correcting my mistake. It seems that different browers behaved differently on each method of redirections. The only way seem to detect the browser the user is using first then redirect based on what type of browser the user is using. Then lastly use a server side script to detect if the referrer is really blank and if it is show page, and if not redirect to a blank page or other page.
     
    • Thanks Thanks x 1