You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# IP2Proxy Haskell Module
2
2
3
-
This Haskell package allows user to query an IP address if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range and search engine robots (SES). It lookup the proxy IP address from **IP2Proxy BIN Data** file. This data file can be downloaded at
3
+
This Haskell package allows user to query an IP address if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range, search engine robots (SES) and residential (RES). It lookup the proxy IP address from **IP2Proxy BIN Data** file. This data file can be downloaded at
4
4
5
5
* Free IP2Proxy BIN Data: https://lite.ip2location.com
6
6
* Commercial IP2Proxy BIN Data: https://www.ip2location.com/database/ip2proxy
@@ -18,22 +18,23 @@ Below are the methods supported in this package.
18
18
|Method Name|Description|
19
19
|---|---|
20
20
|open|Open the IP2Proxy BIN data for lookup.|
21
-
|getPackageVersion|Get the package version (1 to 8 for PX1 to PX8 respectively).|
21
+
|getPackageVersion|Get the package version (1 to 10 for PX1 to PX10 respectively).|
22
22
|getModuleVersion|Get the module version.|
23
23
|getDatabaseVersion|Get the database version.|
24
24
|isProxy|Check whether if an IP address was a proxy. Returned value:<ul><li>-1 : errors</li><li>0 : not a proxy</li><li>1 : a proxy</li><li>2 : a data center IP address or search engine robot</li></ul>|
25
25
|getAll|Return the proxy information in a record.|
26
-
|getProxyType|Return the proxy type. Please visit <ahref="https://www.ip2location.com/database/px8-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen"target="_blank">IP2Location</a> for the list of proxy types supported.|
26
+
|getProxyType|Return the proxy type. Please visit <ahref="https://www.ip2location.com/database/px10-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen-threat-residential"target="_blank">IP2Location</a> for the list of proxy types supported.|
27
27
|getCountryShort|Return the ISO3166-1 country code (2-digits) of the proxy.|
28
28
|getCountryLong|Return the ISO3166-1 country name of the proxy.|
29
29
|getRegion|Return the ISO3166-2 region name of the proxy. Please visit <ahref="https://www.ip2location.com/free/iso3166-2"target="_blank">ISO3166-2 Subdivision Code</a> for the information of ISO3166-2 supported.|
30
30
|getCity|Return the city name of the proxy.|
31
31
|getISP|Return the ISP name of the proxy.|
32
32
|getDomain|Return the domain name of the proxy.|
33
-
|getUsageType|Return the usage type classification of the proxy. Please visit <ahref="https://www.ip2location.com/database/px8-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen"target="_blank">IP2Location</a> for the list of usage types supported.|
33
+
|getUsageType|Return the usage type classification of the proxy. Please visit <ahref="https://www.ip2location.com/database/px10-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen-threat-residential"target="_blank">IP2Location</a> for the list of usage types supported.|
34
34
|getASN|Return the autonomous system number of the proxy.|
35
35
|getAS|Return the autonomous system name of the proxy.|
36
36
|getLastSeen|Return the number of days that the proxy was last seen.|
37
+
|getThreat|Return the threat type of the proxy.|
37
38
38
39
## Example
39
40
@@ -42,7 +43,7 @@ import IP2Proxy
42
43
43
44
main::IO()
44
45
main =do
45
-
let myfile ="./IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN.BIN"
46
+
let myfile ="./IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN"
Copy file name to clipboardExpand all lines: ip2proxy.cabal
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ name: ip2proxy
10
10
-- PVP summary: +-+------- breaking API changes
11
11
-- | | +----- non-breaking API additions
12
12
-- | | | +--- code changes with no API change
13
-
version: 2.2.1
13
+
version: 3.0.0
14
14
15
15
-- A short (one-line) description of the package.
16
16
synopsis: IP2Proxy Haskell package for proxy detection.
17
17
18
18
-- A longer description of the package.
19
-
description: This Haskell package allows users to query an IP address to determine if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range and search engine robots (SES).
19
+
description: This Haskell package allows users to query an IP address to determine if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range, search engine robots (SES) and residential (RES).
20
20
21
21
-- URL for the project homepage or repository.
22
22
homepage: https://www.ip2location.com
@@ -60,7 +60,7 @@ library
60
60
-- other-extensions:
61
61
62
62
-- Other library packages from which modules are imported.
63
-
build-depends: base >=4.11&&<=4.14, bytestring >=0.10&&<0.11, binary >=0.8.4&&<0.9, iproute >=1.7&&<1.8
63
+
build-depends: base >=4.7&&<=4.14, bytestring >=0.10&&<0.11, binary >=0.8.8&&<0.9, iproute >=1.7&&<1.8
0 commit comments