GithubHelp home page GithubHelp logo

xcodez / proxychecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexeyfreelancer/proxychecker

0.0 2.0 0.0 90 KB

Check if a proxy is working, its type (transparent, anonymous, elite) and other info (time, http code, redirect count, speed etc.)

proxychecker's Introduction

Proxy Checker

Check if a proxy is working, its type (transparent, anonymous, elite) and other info (time, http code, redirect count, speed etc.)

Usage

Proxy format

{ip}:{port},{password},{type}

type - http, socks4, socks5
password and type if not required

Some examples:

123:456:789:8080
123:456:789:8080,user:pass
123:456:789:8080,user:pass,socks5

Check one proxy

$pingUrl = 'http://yourdomain.com/ProxyChecker/ping.php';
$proxy = 'xxx:xxx:xxx:xx';

$proxyChecker = new ProxyChecker($pingUrl);
$results = $proxyChecker->checkProxy($proxy);

Check several proxy

$pingUrl = 'http://yourdomain.com/ProxyChecker/ping.php';
$proxies = array('xxx.xxx.xxx.xxx:xx', 'xxx.xxx.xxx.xxx:xx');

$proxyChecker = new ProxyChecker($pingUrl);
$results = $proxyChecker->checkProxies($proxies);

Result

Allowed/Disallowed

Array allowed/disallowed operations of proxy (get, post, referer, cookie, user_agent), for example:

'allowed' => array (
    0 => 'get',
    1 => 'post',
    2 => 'referer',
    3 => 'user_agent'
)

'disallowed' => array (
    0 => 'cookie'
)

Proxy level

elite - connection looks like a regular client
anonymous - no ip is forworded but target site could still tell it's a proxy
transparent - ip is forworded and target site would be able to tell it's a proxy

'proxy_level' => 'elite',

Other info

Other proxy info - time, http code, redirect count, speed etc:

'info' => array (
  'content_type' => 'text/html',
  'http_code' => 200,
  'header_size' => 237,
  'request_size' => 351,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 1.212548,
  'connect_time' => 0.058647,
  'size_upload' => 143,
  'size_download' => 485,
  'speed_download' => 399,
  'speed_upload' => 117,
  'download_content_length' => 485,
  'upload_content_length' => 143,
  'starttransfer_time' => 1.059746,
  'redirect_time' => 0,
  'certinfo' => array (),
),

proxychecker's People

Contributors

alexeyfreelancer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.