IP2Proxy Haskell Package
This Haskell package supports all IP2Proxy™ BIN database products to query an IP address if it is being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range, search engine robots (SES) and residential proxy (RES). It has been optimized for speed and memory utilization.
Installation
cabal install IP2Proxy
Sample Codes
import IP2Proxy main :: IO () main = do let myfile = "IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN" let ip = "199.83.103.79" meta <- open myfile putStrLn $ "module_version: " ++ getModuleVersion putStrLn $ "package_version: " ++ (getPackageVersion meta) putStrLn $ "database_version: " ++ (getDatabaseVersion meta) result <- getAll myfile meta ip putStrLn $ "country_short: " ++ (show (country_short result)) putStrLn $ "country_long: " ++ (show (country_long result)) putStrLn $ "region: " ++ (show (region result)) putStrLn $ "city: " ++ (show (city result)) putStrLn $ "isp: " ++ (show (isp result)) putStrLn $ "proxy_type: " ++ (show (proxy_type result)) putStrLn $ "domain: " ++ (show (domain result)) putStrLn $ "usage_type: " ++ (show (usage_type result)) putStrLn $ "asn: " ++ (show (asn result)) putStrLn $ "as: " ++ (show (as result)) putStrLn $ "last_seen: " ++ (show (last_seen result)) putStrLn $ "threat: " ++ (show (threat result)) putStrLn $ "is_proxy: " ++ (show (is_proxy result)) result <- getCountryShort myfile meta ip putStrLn $ "country_short: " ++ result result <- getCountryLong myfile meta ip putStrLn $ "country_long: " ++ result result <- getRegion myfile meta ip putStrLn $ "region: " ++ result result <- getCity myfile meta ip putStrLn $ "city: " ++ result result <- getISP myfile meta ip putStrLn $ "isp: " ++ result result <- getProxyType myfile meta ip putStrLn $ "proxy_type: " ++ result result <- getDomain myfile meta ip putStrLn $ "domain: " ++ result result <- getUsageType myfile meta ip putStrLn $ "usage_type: " ++ result result <- getASN myfile meta ip putStrLn $ "asn: " ++ result result <- getAS myfile meta ip putStrLn $ "as: " ++ result result <- getLastSeen myfile meta ip putStrLn $ "last_seen: " ++ result result <- getThreat myfile meta ip putStrLn $ "threat: " ++ result result <- isProxy myfile meta ip putStrLn $ "is_proxy: " ++ result
Sample IP2Proxy Databases (BIN)
Sample Packages | IPv4 + IPv6 |
---|---|
IP2Proxy PX1 Sample BIN File | Download (29.42 MB) |
IP2Proxy PX2 Sample BIN File | Download (32.33 MB) |
IP2Proxy PX3 Sample BIN File | Download (38.40 MB) |
IP2Proxy PX4 Sample BIN File | Download (46.01 MB) |
IP2Proxy PX5 Sample BIN File | Download (48.17 MB) |
IP2Proxy PX6 Sample BIN File | Download (49.12 MB) |
IP2Proxy PX7 Sample BIN File | Download (52.22 MB) |
IP2Proxy PX8 Sample BIN File | Download (53.45 MB) |
IP2Proxy PX9 Sample BIN File | Download (53.84 MB) |
IP2Proxy PX10 Sample BIN File | Download (61.45 MB) |