0.0
No commit activity in last 3 years
No release in over 3 years
Proxi Clean will check your proxy and tell you if it's working or not.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 10.0
>= 3.2.0, ~> 3.2
>= 2.9.3, ~> 2.9
>= 1.20.4, ~> 1.20

Runtime

~> 0.9.1
 Project Readme

Proxi Clean Career Destroying Logo

Build Status

ProxiClean

What is proxi_clean?

A simple utility for checking if an http proxy works or not. If you deal with huge lists of proxies and need to clean out the dead or non-functional ones, this might help you.

How does it work?

Using the power of oxygen proxi_clean will make a call to the ipinfo.io API (JSON is returned with proper headers) using Faraday and determine the current unproxied public IP. When checking if a proxy is valid or not proxi_clean reconfigures itself to use the proxy you provide and confirms that ipinfo.io returns an IP address that does NOT match your unproxied public IP.

If anything goes wrong we blindly assume the proxy is no good.

Installation

Add this line to your application's Gemfile:

gem 'proxi_clean'

And then execute:

$ bundle

Or install it yourself as:

$ gem install proxi_clean

Usage

Easy! The API has 1 useful public method: works?. Just create a client and start checking proxies.

2.2.1 :005 > client = ProxiClean::Client.new
 => #<ProxiClean::Client:0x007fa149e78b18 @public_ip="47.202.47.103">
2.2.1 :006 > client.works? 'https://124.88.67.13:843'
 => true
2.2.1 :007 > client.works? 'https://NOT-GONNA-WORK.com:47'
 => false

Contributing

  1. Fork it ( https://github.com/mariozig/proxi_clean/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request