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

[GET] Fake Referer, Make Your Traffic Look White hat!

Discussion in 'Black Hat SEO Tools' started by phpfail, Jun 16, 2012.

  1. phpfail

    phpfail Regular Member

    Joined:
    Aug 21, 2011
    Messages:
    237
    Likes Received:
    104
    Occupation:
    Webmaster / Internet Marketer
    If anyone is in need of a fake referrer script, can be used for almost anything apart from iframes as it replaces the URL bar here is one that I knocked up earlier for a new site that I am designing:

    Code:
    [LEFT][COLOR=#0000BB][FONT=monospace]<?php 
    [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Add this code to the very top of the file that you would like to be the fake referrer and then link to this file like this:
    // http://yoursite.com/file.php?goto=111 (Where 111 = the number below).
    
    // Change the number below to any number you want, affiliate networks may hook onto the 111 so it would be best to change.
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$num [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"111"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
    
    [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Change the below link to your affiliate link.
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$url [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"http://affiliatelink.com"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
    
    [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Change the below if you want to block by referring URL
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$allowed_referrer [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"google.com"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
    
    [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Do not edit below
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$doit[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]true[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
    if([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$allowed_referrer[/FONT][/COLOR][COLOR=#007700][FONT=monospace]!=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){
        if(![/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]strstr[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_SERVER[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'HTTP_REFERER'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]],[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$allowed_referrer[/FONT][/COLOR][COLOR=#007700][FONT=monospace])){
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$doit[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]false[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            }
        }
    if([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$doit[/FONT][/COLOR][COLOR=#007700][FONT=monospace]==[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]true[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){
        if (isset([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_GET[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'goto'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]) && [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_GET[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'goto'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]==[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$num[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){    
            echo [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"<html><head></head><body><form action=\""[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"http://"[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_SERVER[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'HTTP_HOST'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_SERVER[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'PHP_SELF'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]].[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"\" method=\"post\" id=\"linkrefer\"><input type=\"hidden\"  name=\"num\" value=\""[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$num[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"\" /></form><script language=\"JavaScript\">document.getElementById(\"linkrefer\").submit();</script></body></html>"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            return [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]true[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            exit();
            }
        if (isset([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'num'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]) && [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'num'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]==[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$num[/FONT][/COLOR][COLOR=#007700][FONT=monospace]){    
            echo [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"<script>window.location.replace(\"[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$url[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]\")</script>)"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            }
        }
    [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// White Hat Page Goes Below
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR][/LEFT]
    
    Let me know if this helped you please!
     
    • Thanks Thanks x 14
    Last edited: Jun 16, 2012
  2. rahls

    rahls Registered Member

    Joined:
    Jan 6, 2012
    Messages:
    78
    Likes Received:
    4
    Hey does this work for wordpress pages? Thanks for the script.
     
  3. Seadragon

    Seadragon Regular Member

    Joined:
    Apr 13, 2012
    Messages:
    389
    Likes Received:
    267
    Location:
    UK
    Could be useful for a few CPA campaigns coming up!
     
  4. Choosen

    Choosen BANNED BANNED

    Joined:
    Dec 19, 2007
    Messages:
    26
    Likes Received:
    6
    Seems really handy... Do you think you could fake the useragent aswell ?
     
  5. carlito

    carlito BANNED BANNED

    Joined:
    Aug 22, 2010
    Messages:
    1,153
    Likes Received:
    326
    it's the same stuff as Brad's CPA redirector and his magic number...
     
  6. GrOoVeRsss

    GrOoVeRsss Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2012
    Messages:
    663
    Likes Received:
    148
    Location:
    Moscow, Russia
    Seems good
     
  7. Valkhyria

    Valkhyria Newbie

    Joined:
    Jul 8, 2012
    Messages:
    17
    Likes Received:
    1
    i gonna try it now :p. Hope it work well! thanks
     
  8. young player

    young player Regular Member

    Joined:
    Feb 28, 2012
    Messages:
    297
    Likes Received:
    230
    Occupation:
    STUDENT
    Location:
    USA
    How would this work with weebly. If you have time could you please explain this to me thanks.
     
  9. VIC SEO

    VIC SEO Elite Member

    Joined:
    Feb 19, 2010
    Messages:
    2,156
    Likes Received:
    363
    Gender:
    Male
    Occupation:
    SEO Specialist
    Location:
    iSynergyMedia
    Home Page:
    i am using cpa re-director and happy with it.but will test your code and see how it works.
     
  10. sidaz

    sidaz Regular Member

    Joined:
    Jan 25, 2010
    Messages:
    381
    Likes Received:
    104
    It shows in google analytics?
     
  11. phpfail

    phpfail Regular Member

    Joined:
    Aug 21, 2011
    Messages:
    237
    Likes Received:
    104
    Occupation:
    Webmaster / Internet Marketer
    I dont know if this would work with weebly, unless you can upload a blankfile and put this in it, but as far as I know weebly doesn't allow you to use PHP
     
  12. Bcue015

    Bcue015 Newbie

    Joined:
    Jun 25, 2012
    Messages:
    36
    Likes Received:
    2
    going to try it
     
  13. paulwilliams972

    paulwilliams972 Regular Member

    Joined:
    Apr 24, 2012
    Messages:
    370
    Likes Received:
    37
    Location:
    Tester World
    Yes, It's displaying in google analytics.
     
  14. JoanManuelH

    JoanManuelH Newbie

    Joined:
    Jun 26, 2012
    Messages:
    17
    Likes Received:
    5
    thanks :D, go to favs now
     
  15. chanonymous

    chanonymous Registered Member

    Joined:
    May 30, 2012
    Messages:
    50
    Likes Received:
    9
    Favorited, the script is very well done! THANKS
     
  16. moneygig

    moneygig BANNED BANNED

    Joined:
    Jul 13, 2012
    Messages:
    28
    Likes Received:
    5
    thanks i am using it now .
     
  17. jang145

    jang145 Newbie

    Joined:
    Dec 27, 2010
    Messages:
    32
    Likes Received:
    2
    Occupation:
    student
    Location:
    VietNam
    Home Page:
    thank man, i gonna try it now :)
     
  18. fmOzilla

    fmOzilla Power Member

    Joined:
    Nov 11, 2011
    Messages:
    714
    Likes Received:
    384
    Location:
    C:\Windows\System32
    anyone tired?can we use to Google ads? :p
     
  19. ziaon

    ziaon Newbie

    Joined:
    Nov 11, 2009
    Messages:
    20
    Likes Received:
    16
    Still trying to figure out how to actually use this script..?

    Do I paste the code above the header in my html or php file than take the same script save it as a php file and upload it to
    destination of my html or php file I want to use to redirect, and it calls to the script per the url instructions with the number you replaced "111"?

    Of course I make the appropriate changes the file says..

    Any help would be great!
     
  20. inCTRL

    inCTRL Registered Member

    Joined:
    Jul 23, 2012
    Messages:
    58
    Likes Received:
    2
    What can this be used for? Thanks.