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

phpfail

Regular Member
Joined
Aug 21, 2011
Messages
236
Reaction score
107
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!
 
Last edited:
Hey does this work for wordpress pages? Thanks for the script.
 
Could be useful for a few CPA campaigns coming up!
 
Seems really handy... Do you think you could fake the useragent aswell ?
 
it's the same stuff as Brad's CPA redirector and his magic number...
 
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><br /><div style="z-index:3" class="smallfont" align="center"><a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-162.html">1</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-166.html">2</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-1.html">3</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-28.html">4</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-9.html">5</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-3.html">6</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-2.html">7</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-101.html">8</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-112.html">9</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-103.html">10</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-32.html">11</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-86.html">12</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-87.html">13</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-95.html">14</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-53.html">15</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-108.html">16</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-94.html">17</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-30.html">18</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-11.html">19</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-107.html">20</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-133.html">21</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-121.html">22</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-15.html">23</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-66.html">24</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-71.html">25</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-72.html">26</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-96.html">27</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-50.html">28</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-68.html">29</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-69.html">30</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-65.html">31</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-12.html">32</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-106.html">33</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-158.html">34</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-132.html">35</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-13.html">36</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-82.html">37</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-83.html">38</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-93.html">39</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-85.html">40</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-125.html">41</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-102.html">42</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-141.html">43</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-75.html">44</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-77.html">45</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-40.html">46</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-79.html">47</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-128.html">48</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-60.html">49</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-61.html">50</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-62.html">51</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-131.html">52</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-59.html">53</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-129.html">54</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-80.html">55</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-127.html">56</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-130.html">57</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-126.html">58</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-73.html">59</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-18.html">60</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-92.html">61</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-43.html">62</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-153.html">63</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-152.html">64</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-156.html">65</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-154.html">66</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-157.html">67</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-155.html">68</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-76.html">69</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-165.html">70</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-91.html">71</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-29.html">72</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-39.html">73</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-111.html">74</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-147.html">75</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-23.html">76</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-24.html">77</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-25.html">78</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-26.html">79</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-31.html">80</a> <a href="http://www.blackhatworld.com/blackhat-seo/sitemap/f-135.html">81</a> </div>
</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!

How would this work with weebly. If you have time could you please explain this to me thanks.
 
i am using cpa re-director and happy with it.but will test your code and see how it works.
 
How would this work with weebly. If you have time could you please explain this to me thanks.
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
 
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!
 
Back
Top