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

[ASK] Anyone knows Blanking Referer script?

Discussion in 'Making Money' started by smlover, Dec 12, 2013.

  1. smlover

    smlover Junior Member

    Joined:
    Mar 4, 2011
    Messages:
    111
    Likes Received:
    17
    Home Page:
    Meanwhile I use 3rd party service like bl@ankr3f3rer(.)com

    They managed to blanking fine, tested on all major browser.
    But today I found out that they abuse my traffic around 15%-18%!

    So yeah maybe it's better to host own blanking script than relies on free 3rd party service and getting abuse like that. They are free for something.

    Please help if you know the working blanking script, Thanks.
     
  2. loclhero

    loclhero Supreme Member

    Joined:
    Jun 11, 2007
    Messages:
    1,453
    Likes Received:
    2,413
    Gender:
    Male
    Location:
    Copperhead Road
    Someone smarter than me can confirm if this works or not but I used it many years ago.

    Code:
    STEP 1 (URL 1)
    
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer != "")
        {
            echo "<meta http-equiv=\"refresh\" content=\"0;url=URL2\">";    
        }
    ?> 
    
    
    STEP 2 (URL 2 GOES TO CPA SITE)
    
    <?php
        $referer = $_SERVER['HTTP_REFERER'];
        if($referer == "")
        {
            echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatelink.com\">";    
        }
    ?> 
     
  3. smlover

    smlover Junior Member

    Joined:
    Mar 4, 2011
    Messages:
    111
    Likes Received:
    17
    Home Page:
    Thanks, I tried it myself on google chrome, but it does not work
     
  4. artificial_genius

    artificial_genius Jr. VIP Jr. VIP

    Joined:
    Sep 27, 2011
    Messages:
    863
    Likes Received:
    314
    Home Page:
    There are no referrer blanking scripts that I know of that work with Google Chrome or Safari (any webkit browsers). They only work on Firefox or Internet Explorer.

    So you'll need a script that, if Chrome/Safari is being used and the script detects that the redirect isn't blanking anything, then the user gets redirected to a safe link (which might possibly be what the service you were using was redirecting some of your traffic elsewhere).

    If you are ok with the referrer not being blanked, but instead being set to your "in between" page, then you can do a longer meta refresh. This will work on all browsers but won't actually blank the referrer.
     
  5. daStick

    daStick Newbie

    Joined:
    Oct 28, 2010
    Messages:
    40
    Likes Received:
    15
    I have never once had a problem using this script for 3+ years. Have never seen my real url show up in affiliate program stats, or ever had any affiliate program contact me about a traffic source when I've been using this.
     
  6. artificial_genius

    artificial_genius Jr. VIP Jr. VIP

    Joined:
    Sep 27, 2011
    Messages:
    863
    Likes Received:
    314
    Home Page:
    That's just a worse version of the script loclhero posted.