Login Register

sunjester's proxy checker filter_list
sunjester's proxy checker #1
[Image: 8He3mTd.png]

So it's pretty basic. If you make changes or have suggestions, leave a message on the thread. The checker will tell you if it is online and what type of proxy it is.

supported types:
  • socks4
  • socks4a
  • socks5
  • http
  • https
  • http 1.0

<h3>sunjester&apos;s proxy checker</h3>
<p>This checker requires your proxies to be in the format of IP:PORT</p>
<p>This checker will determine if a proxy is online and what type of proxy it is.</p>

<form method="post">
        <p><textarea name="proxies" cols="80" rows="20" placeholder="paste your proxies here"></textarea></p>
        <!--input type="radio" name="output" id="json_out" value="json" /> <label for="json_out">JSON output</label-->
        <input type="radio" name="output" id="raw_out" value="raw" checked /><label for="raw_out">Raw</label>
        <p><button type="submit">Check proxies</button></p>


        $checker = new SJProxyChecker($_POST['proxies']);
        echo $checker->check();

class SJProxyChecker
        private $ip;
        private $port;
        private $proxies;
        private $proxy_types = [
        private $result = "<table border=1>";

        function __construct($proxylist)
                $this->proxies = explode("\n", $proxylist);

        function check()
                foreach($this->proxies as $proxy)
                        foreach($this->proxy_types as $type)
                                $proxy_info = explode(":", $proxy);
                                if($this->isOnline($proxy_info[0], $proxy_info[1]))
                                        $r = $this->makeReq($proxy, $type);

                                        if($r == $proxy_info[0])
                                                $this->result .= "<tr><td>".$proxy."</td><td>".$type."</td></tr>";

                $this->result .= "</table>";
                return $this->result;

        function isOnline($ip, $port)
                if(fsockopen($ip, $port, $errno, $errstr, 30))
                        return true;
                } else {
                        return false;

        function makeReq($proxy, $type)
                $ch = curl_init();

                curl_setopt($ch, CURLOPT_URL, "https://api.ipify.org");
                curl_setopt($ch, CURLOPT_PROXY, $proxy);
                curl_setopt($ch, CURLOPT_PROXYTYPE, $type);
                curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

                $result = curl_exec($ch);
                return $result;
(This post was last modified: 01-10-2019, 04:04 PM by sunjester. Edit Reason: grammar. )


Users browsing this thread: 1 Guest(s)