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
+2-156Lines changed: 2 additions & 156 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,159 +8,5 @@ This package allows user to query an IP address if it was being used as VPN anon
8
8
* Free IP2Proxy BIN Data: https://lite.ip2location.com
9
9
* Commercial IP2Proxy BIN Data: https://www.ip2location.com/database/ip2proxy
10
10
11
-
As an alternative, this package can also call the IP2Proxy Web Service. This requires an API key. If you don't have an existing API key, you can subscribe for one at the below:
12
-
13
-
https://www.ip2location.com/web-service/ip2proxy
14
-
15
-
## Installation
16
-
17
-
To install this module type the following:
18
-
19
-
```bash
20
-
21
-
go get github.com/ip2location/ip2proxy-go/v4
22
-
23
-
```
24
-
25
-
## QUERY USING THE BIN FILE
26
-
27
-
## Methods
28
-
Below are the methods supported in this package.
29
-
30
-
|Method Name|Description|
31
-
|---|---|
32
-
|OpenDB|Open the IP2Proxy BIN data for lookup.|
33
-
|Close|Close and clean up the file pointer.|
34
-
|PackageVersion|Get the package version (1 to 11 for PX1 to PX11 respectively).|
35
-
|ModuleVersion|Get the module version.|
36
-
|DatabaseVersion|Get the database version.|
37
-
|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>|
38
-
|GetAll|Return the proxy information in an array.|
39
-
|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.|
40
-
|GetCountryShort|Return the ISO3166-1 country code (2-digits) of the proxy.|
41
-
|GetCountryLong|Return the ISO3166-1 country name of the proxy.|
42
-
|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.|
43
-
|GetCity|Return the city name of the proxy.|
44
-
|GetIsp|Return the ISP name of the proxy.|
45
-
|GetDomain|Return the domain name of the proxy.|
46
-
|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.|
47
-
|GetAsn|Return the autonomous system number of the proxy.|
48
-
|GetAs|Return the autonomous system name of the proxy.|
49
-
|GetLastSeen|Return the number of days that the proxy was last seen.|
## QUERY USING THE IP2PROXY PROXY DETECTION WEB SERVICE
101
-
102
-
## Methods
103
-
Below are the methods supported in this class.
104
-
105
-
|Method Name|Description|
106
-
|---|---|
107
-
|OpenWS(apikey string, apipackage string, usessl bool)| Expects 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX11)</li></li><li>Use HTTPS or HTTP</li></ol> |
108
-
|LookUp(ipAddress string)|Query IP address. This method returns a struct containing the proxy info. <ul><li>CountryCode</li><li>CountryName</li><li>RegionName</li><li>CityName</li><li>ISP</li><li>Domain</li><li>UsageType</li><li>ASN</li><li>AS</li><li>LastSeen</li><li>Threat</li><li>ProxyType</li><li>IsProxy</li><li>Provider</li><ul>|
109
-
|GetCredit()|This method returns the web service credit balance in a struct.|
To learn more about installation, usage, and code examples, please visit the developer documentation at [https://ip2proxy-go.readthedocs.io/en/latest/index.html.](https://ip2proxy-go.readthedocs.io/en/latest/index.html)
0 commit comments