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

Method to test google passed proxies

Discussion in 'Proxies' started by audioguy, May 31, 2013.

  1. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    How do they do that?

    I bet it's not only to open Google's home page, just like when testing a proxy if it works, and then search for specific strings.

    Do they perform random searches?

    The reason I asked is I want to automate this thing. Using ScrapeBox to test this a few times a day becomes boring.
     
  2. extremeboy

    extremeboy Jr. VIP Jr. VIP

    Joined:
    Jul 8, 2010
    Messages:
    2,993
    Likes Received:
    648
    Occupation:
    World Best RANK Tracker SERPCloud.com
    Home Page:
    • Thanks Thanks x 1
  3. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    I'll give this a try :)
     
    • Thanks Thanks x 1
  4. proxygo

    proxygo Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 2, 2008
    Messages:
    10,295
    Likes Received:
    8,714
    just buy scrapebox 57$ has built in google proxy checker
     
  5. WayneInc

    WayneInc Senior Member

    Joined:
    Sep 20, 2012
    Messages:
    1,178
    Likes Received:
    1,099
  6. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    It's already answered. If you want, please DO read the post first.

    Yeah I use SB now. And no it's not the answer.
     
  7. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    Using SB, the results are more than 200 Google-passed proxies. With my custom script: 48.

    Still needs tweaking, I guess.
     
  8. writerhere

    writerhere Junior Member

    Joined:
    Feb 17, 2010
    Messages:
    162
    Likes Received:
    57
    Occupation:
    Affiliate
    Location:
    In My PS3
    Yes this seems to be the easiest option available.
     
  9. NIXMY

    NIXMY Regular Member Premium Member

    Joined:
    Sep 26, 2010
    Messages:
    481
    Likes Received:
    321
    Location:
    myproxylists.com
    Home Page:
    I hear you. Just find any software for windows that allow you to debug HTTP traffic. Now just use any software to test with any google passed proxy and you'll basically get the method on how to test against google. Here's how I do it:

    Codes below are my own codes and therefore I've reserved the right to share you guys with this information.

    Example first request. This is the fastest way that allow you to determine a google passed just using two request. The other software's usually use 3 requests making this test a lot slower and unreliable.

    You need to have coding skills to understand this example because this is a bit tricky. However hopefully you can get your own google passed bot coded using this example.

    First request using google's 'NCR' No Country Redirect

    Code:
    
    $headers = "GET [URL]http://www.google.com/ncr[/URL] HTTP/1.0\r\n";
        $headers .= "Host: $host\r\n";
        $headers .= "User-Agent: $user_agent\r\n";
        $headers .= 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n';
        $headers .= 'Accept-Language: en-gb,en;q=0.5\r\n';
        $headers .= "Connection: Close\r\n\r\n";
    
    After first request you'll have to parse headers and grab cookies from content. The code that grabs content and the headers is ugly but works, feel free to cleanup yourself if you want ;)

    Code:
    
    function parse_results($content = '') {
    
        $headers = null;
        $results = array();
        $occurrences = substr_count($content, 'HTTP/');
    
        if ($occurrences == 1) {
    
            $headers = substr($content, strpos($content, "HTTP/"), strpos($content, "\r\n\r\n") - strpos($content, "HTTP/"));
            $content = str_replace("\r\n\r\n", "", substr($content, strlen($headers), strlen($content)));
    
        } elseif ($occurrences == 2) {
    
            $headers1 = substr($content, strpos($content, "HTTP/"), strpos($content, "\r\n\r\n") - strpos($content, "HTTP/"));
    
            $content = trim(substr($content, strpos($content, "\r\n\r\n"), strlen($content)));
            $headers2 = substr($content, strpos($content, "HTTP/"), strpos($content, "\r\n\r\n") - strpos($content, "HTTP/"));
    
            $content = str_replace($headers2, "", $content);
            $content = str_replace("\r\n\r\n", "", $content);
    
            $headers = $headers1."\n\n";
            $headers .= $headers2;
        } else {
            return false;
        }
    
        $results["content"] = $content;
        $results["headers"] = $headers;
    
        return $results;
    }
    
    function get_cookies($cookies = null) {
    
        $string_cookies = null;
    
        if (preg_match_all('/Set-Cookie:(.*?)\n/i', $cookies, $matches, PREG_PATTERN_ORDER)) {
    
            if (count($matches[1]) >= 1) {
    
                foreach ($matches[1] as $key => $cookie) {
                    $cookie = trim($cookie);
                    $string_cookies .= "Cookie: $cookie"."\r\n";
                }
            }
        }
    
        return $string_cookies;
    }
    
    
    If the proxy was already banned in google, you will be redirected url similar to 'http://www.google.com/sorry/?continue='. In order to go further with this test, we must now append the received cookies to the headers. You will receive cookies similar to:

    The above get_cookies function will be able to parse the required cookies without any issue. Now for the second request you just append those cookies to the final request:

    Code:
    $headers = "GET $location HTTP/1.0\r\n";
                $headers .= "Host: $host\r\n";
                $headers .= "User-Agent: USER_AGENT\r\n";
                $headers .= 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n';
                $headers .= 'Accept-Language: en-gb,en;q=0.5\r\n';
                $headers .= "Referer: $referer\r\n";
    
    $headers .= $cookies;
    
    $location variable: http://www.google.com/search?complete=0&filter=0&output=ie&hl=en&num=10&q=URL_ENCODED_QUERY&start=0
    
    URL_ENCODED_QUERY is a string you want to query for and parse output you got what you wanted (google passed proxy)
    
    I did not provided full example but this should be enough for those who know how to code in your preferred scripting or programming language.

    Shorthand version:

    1) First query http://www.google.com/ncr and grab location header and cookies

    You can easily grab location from headers using:

    Code:
    if (preg_match('/Location:(.*?)\n/i', $headers, $m)) {
    
                                $location = trim($m[1]);
    }
    
    2) Sent the final request with received cookies to the following URL:

    3) If your regexp will find a keyword similar to your query, you know the proxy was google passed.
     
    Last edited: Jun 6, 2013