• 28-12-2009, 10:09:46
    #1
    Reveloper
    bu sitelere girmek için nasıl bir fonksiyon veya link önüne nasıl bir proxy sitesi eklemeliyim?(bot için)
  • 28-12-2009, 10:20:29
    #2
    Üyeliği durduruldu
    curl ile proxy kullanarak girebilirsiniz
  • 28-12-2009, 10:22:55
    #3
    Reveloper
    bi örnek verirmisiniz hocam
  • 28-12-2009, 10:53:34
    #4
    Üyeliği durduruldu
    güncel, çalışır proxy adresleri bulunup aşağıdaki fonksiyon ile ttnet yasaklı sitelere erişilebilir.
    <?php
    $proxy = '95.175.10.246:3128';
    function getir($site)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $site);
        curl_setopt($ch, CURLOPT_HEADER, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_PROXY, $GLOBALS['proxy']); 
        $data = curl_exec($ch);
        curl_close($ch);
        return $data;
    }
    echo getir('http://www.youtube.com');
    ?>
  • 28-12-2009, 11:01:33
    #5
    devturkeli adlı üyeden alıntı: mesajı görüntüle
    güncel, çalışır proxy adresleri bulunup aşağıdaki fonksiyon ile ttnet yasaklı sitelere erişilebilir.
    <?php
    $proxy = '95.175.10.246:3128';
    function getir($site)
    {
    global $proxy; // dikkat
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $site);
        curl_setopt($ch, CURLOPT_HEADER, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_PROXY, $proxy); 
        $data = curl_exec($ch);
        curl_close($ch);
        return $data;
    }
    echo getir('http://www.youtube.com');
    ?>
    olacak
  • 28-12-2009, 11:39:50
    #6
    Reveloper
    çok saolun hocam