Module which checks a big number of proxy servers.


proxy-checker is a Node.js module you can use to check if proxies from a big list are working.

For example, let's say you want to connect to the website, but it blocks requests from your IP. So you search on the Internet a few proxy servers to use to connect to this website. The problem is that a lot of proxies you can find are not working, or maybe they are already blocked by

With proxy-checker, you can test big lists of proxy servers to see if they work to send requests to a website.

To install the module: npm install proxy-checker

var proxyChecker = require('proxy-checker');
    // The path to the file containing proxies 
        // the complete URL to check the proxy 
        url: '',
        // an optional regex to check for the presence of some text on the page 
        regex: /Example Domain/
    // Callback function to be called after the check 
    function(hostportokstatusCodeerr) {
        console.log(host + ':' + port + ' => '
            + ok + ' (status: ' + statusCode + ', err: ' + err + ')');

The file you pass as first parameter contains the proxy servers to test. Here is an example:

# <= This line will be ignored

Note that thanks to the Readline API, the file is read line by line, so if your file contains thousands of lines it shouldn't be an issue.