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

PHP Fake Referrer & IP "Never Use Same IP Twice"

Discussion in 'Cloaking and Content Generators' started by stessmer2010, Aug 10, 2014.

  1. stessmer2010

    stessmer2010 Newbie

    Joined:
    Feb 17, 2012
    Messages:
    2
    Likes Received:
    0
    Ok i cam up with this idea looked around the web and put this togather
    The first part Grabs Proxy.txt inside proxy.txt the format is
    PROXYIP:port
    PROXYIP:port
    PROXYIP:port

    Now when you visit the script it grabs a random line displays it the the page and puts it in a variable called $data
    Then it rewrites the proxy.txt file and deletes that current line that it randomly grabbed from proxy.txt
    hence never using the same proxy twice
    Than it has a fake Referrer Code i grabbed from somewhere on this forum to use this look at usage below
    any way to make this code better would be great like Checking if proxy is alive and working or not feel free to post and edit this code

    Code:
    <?PHP
    $rows = file("proxy.txt");    
    
    
    
    
    $f_contents = $rows;
    $linee = $f_contents[array_rand($f_contents)];
    $dataa = $linee;
    echo $dataa;
    $blacklist = $dataa;
    foreach($rows as $key => $row) {
        if(preg_match("/($blacklist)/", $row)) {
            unset($rows[$key]);
        }
    }
    
    
    file_put_contents("proxy.txt", implode($rows));
    $url = $_GET["red"];
    
    
    function disguise_curl($url)
    {
    
    
     $browser = $_SERVER['HTTP_USER_AGENT'];
     $curl = curl_init();
    
    
      $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
      $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
      $header[] = "Cache-Control: max-age=0";
      $header[] = "Connection: keep-alive";
      $header[] = "Keep-Alive: 300";
      $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
      $header[] = "Accept-Language: en-us,en;q=0.5";
      $header[] = "Pragma: "; // browsers keep this blank.
    
    
      curl_setopt($curl, CURLOPT_URL, $url);
      curl_setopt($curl, CURLOPT_PROXY, $dataa);
      curl_setopt($curl, CURLOPT_USERAGENT, $browser);
      curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
      curl_setopt($curl, CURLOPT_REFERER, $_GET["ref"]);
      curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
      curl_setopt($curl, CURLOPT_AUTOREFERER, true);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($curl, CURLOPT_TIMEOUT, 10);
    
    
    
    
        $sayfa_data = curl_exec($curl);
        curl_close($curl);
    
    
        return $sayfa_data;
    
    
    
    
    }
    
    
    echo disguise_curl($url);  
    ?>
    
    Usage:
    Code:
    httpCOLAN//niche.net63DOTnet/rnd.php?ref=httpCOLAN//wwwdotREFERERURLFAKEDURLHEREdotcom&red=httpCOLAN//wwwdotREDIRECTURLTOTHISPAGETOFAKETHEREFERERHEREdotcom
    Code:
    httpCOLAN/yoururlheredotcom/index.php?ref=httpCOLAN//wwwdotREFERERURLFAKEDURLHEREdotcom&red=httpCOLAN//wwwdotREDIRECTURLTOTHISPAGETOFAKETHEREFERERHEREdotcom
    Please help me to asure the PROXY Spoofing is working feel free to edit and post amongst this page
     
    Last edited: Aug 10, 2014