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

How to Hide Original Referrer Script

Discussion in 'Cloaking and Content Generators' started by nixnash, Dec 27, 2009.

  1. nixnash

    nixnash Power Member

    Joined:
    Oct 26, 2009
    Messages:
    581
    Likes Received:
    204
    Occupation:
    Student
    Location:
    BHW
    Hey guys This shows the page referrer of the page you want to show a referral from. It can do this regardless of origin of your traffic (if ever you need to send links to a network).
    For example, you can email traffic to any of your websites that?ll instantly redirect to the offer. From there, your page will be shown as the referral. Make the network happy by putting some good content on your ?referral page? and to get you all set!

    PHP:
     
    ?php 

    $url 
    = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; 

    function 
    parse($cadena,$busca){ 
    if(
    $busca=="") return 1

    $vi split("%",$busca); 
    $offset=0
    for(
    $n=0;$n<count($vi);$n++){ 
    if(
    $vi[$n]== ""){ 
    if(
    $vi[0]== ""){ 
    $tieneini 1

    } else { 
    $newoff=strpos($cadena,$vi[$n],$offset); 
    if(
    $newoff!==false){ 
    if(!
    $tieneini){ 
    if(
    $offset!=$newoff){ 
    return 
    false


    if(
    $n==count($vi)-1){ 
    if(
    $vi[$n] != substr($cadena,strlen($cadena)-strlen($vi[$n]), strlen($vi[$n]))){ 
    return 
    false


    } else { 
    $offset $newoff strlen($vi[$n]); 

    } else { 
    return 
    false



    return 
    true



    $searchthis "%email%"

    $resp parse($url,$searchthis); 


    if (
    $resp ==1){ 
    header("Location:http://www.yourafiliatelink.com"); 
    } else{ 



    ?>  
    I hope you guys find this useful.
     
    • Thanks Thanks x 1