Library to query IP2Proxy BIN Data files. They contain known proxies, geolocation information, and other meta data for IP address ranges.
https://www.ip2location.com/ is a commercial provider, offering various database files for download.
Supports IPv4 and IPv6.
```rust use ip2proxy::{Columns, Database, Row};
let db = Database::open("data/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP.SAMPLE.BIN")?;
let row = db.query("1.0.0.1".parse()?, Columns::all())?;
asserteq!(row, Some(Row { proxytype: Some(String::from("DCH")), countryshort: Some(String::from("AU")), countrylong: Some(String::from("Australia")), region: Some(String::from("Queensland")), city: Some(String::from("Brisbane")), isp: Some(String::from("Research Prefix for APNIC Labs")), ..Row::default() })); ```
This is an independently developed open-source library, licensed under the MIT or Apache 2.0 license at your option. The author is not associated with IP2Location.com.