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-194Lines changed: 2 additions & 194 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,200 +5,8 @@ This component allows user to query an IP address if it was being used as VPN an
5
5
* Free IP2Proxy BIN Data: https://lite.ip2location.com
6
6
* Commercial IP2Proxy BIN Data: https://www.ip2location.com/database/ip2proxy
7
7
8
-
As an alternative, this component 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:
9
-
10
-
https://www.ip2location.com/web-service/ip2proxy
11
-
12
-
## Requirements
13
-
14
-
Microsoft .NET 4.72 framework or later.
15
-
Compatible with .NET Core 2.x/3.x SDK.
16
-
Compatible with .NET 5/6/7.
17
-
18
-
## QUERY USING THE BIN FILE
19
-
20
-
## Methods
21
-
Below are the methods supported in this class.
22
-
23
-
|Method Name|Description|
24
-
|---|---|
25
-
|Open|Open the IP2Proxy BIN data for lookup. Please see the **Usage** section of the 2 modes supported to load the BIN data file.|
26
-
|Close|Close and clean up the file pointer.|
27
-
|GetPackageVersion|Get the package version (1 to 11 for PX1 to PX11 respectively).|
28
-
|GetModuleVersion|Get the module version.|
29
-
|GetDatabaseVersion|Get the database version.|
30
-
|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>|
31
-
|GetAll|Return the proxy information in an object.|
32
-
|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|
33
-
|GetCountryShort|Return the ISO3166-1 country code (2-digits) of the proxy.|
34
-
|GetCountryLong|Return the ISO3166-1 country name of the proxy.|
35
-
|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|
36
-
|GetCity|Return the city name of the proxy.|
37
-
|GetISP|Return the ISP name of the proxy.|
38
-
|GetDomain|Return the domain name of the proxy.|
39
-
|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.|
40
-
|GetASN|Return the autonomous system number of the proxy.|
41
-
|GetAS|Return the autonomous system name of the proxy.|
42
-
|GetLastSeen|Return the number of days that the proxy was last seen.|
43
-
|GetThreat|Return the threat type of the proxy.|
44
-
|GetProvider|Return the provider of the proxy.|
45
-
46
-
## Usage
47
-
48
-
Open and read IP2Proxy binary database. There are 2 modes:
49
-
50
-
1.**IOModes.IP2PROXY_FILE_IO** - File I/O reading. Slower lookup, but low resource consuming. This is the default.
51
-
2.**IOModes.IP2PROXY_MEMORY_MAPPED** - Stores whole IP2Proxy database into a memory-mapped file. Extremely resources consuming. Do not use this mode if your system do not have enough memory.
## QUERY USING THE IP2PROXY PROXY DETECTION WEB SERVICE
146
-
147
-
## Methods
148
-
Below are the methods supported in this class.
149
-
150
-
|Method Name|Description|
151
-
|---|---|
152
-
|Open(ByVal APIKey As String, ByVal Package As String, ByVal Optional UseSSL As Boolean = True)| Expects 2 or 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX11)</li></li><li>Use HTTPS or HTTP</li></ol> |
153
-
|IPQuery(ByVal IP As String)|Query IP address. This method returns a JObject 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>|
154
-
|GetCredit()|This method returns the web service credit balance in a JObject.|
To learn more about installation, usage, and code examples, please visit the developer documentation at [https://ip2proxy-dotnet.readthedocs.io/en/latest/index.html.](https://ip2proxy-dotnet.readthedocs.io/en/latest/index.html)
0 commit comments