Check if you proxy is working or not very easily
If you don't want to compile your own version, you can use the following repository to install it
echo "deb http://packages.matoski.com/ debian main" | sudo tee /etc/apt/sources.list.d/packages-matoski-com.list
curl -s http://packages.matoski.com/keyring.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install proxy-checker
You know what to do with this
This project uses glide to manage dependencies so download them before trying to build/install by running
glide install
To build the binary for Proxy Checker run the command below. This will generate a binary in the bin directory with the name proxy-checker.
make build
To install the binary for Proxy Checker run the command below. This will generate a binary in $GOPATH/bin directory with the name proxy-checker and add the bash autocomplete files.
make install
The csv file structure is like this, you can add as many as you want
<schema>://<host>[:<port>],<username>,<password>
$ proxy-checker --help
usage: proxy-checker [<flags>] <command> [<args> ...]
Checks if an http proxy with basic auth works by querying https://api.ipify.org/
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--queue=25 How many request to process at one time
--failed-only Show only failed proxies
--host="https://api.ipify.org"
Host to query for checking the proxy
Commands:
help [<command>...]
Show help.
version
Show version and terminate
check <host-port> [<username>] [<password>]
Check the single proxy
csv-file <file>
Check all the proxies in the file specified
proxy-checker check http://example.com:60000 username password
http://username:password@example.com:60000 is valid
Where proxies.csv contains
http://proxy01.com:60000,username1,password1
http://proxy02.com:9000,username2,password2
http://proxy03.com:14000,username3,password3
http://proxy04.com:60000,username4,password4
http://proxy05.com,username5,password5
And you can easily check all of them with this command
proxy-checker csv-file proxies.csv
http://username1:password1@proxy01.com:60000 is valid
http://username2:password2@proxy02.com:9000 is invalid
http://username3:password3@proxy03.com:14000 is invalid
http://username4:password4@proxy04.com:60000 is valid
http://username5:password5@proxy05.com is valid
Apache License Version 2.0, January 2004
See License file