Skip to content

Commit ff9609c

Browse files
committed
Added support for IP2Proxy Web Service
1 parent 4eb05c2 commit ff9609c

File tree

3 files changed

+477
-133
lines changed

3 files changed

+477
-133
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ This module allows user to query an IP address if it was being used as VPN anony
55
* Free IP2Proxy BIN Data: https://lite.ip2location.com
66
* Commercial IP2Proxy BIN Data: https://www.ip2location.com/database/ip2proxy
77

8+
As an alternative, this module 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
811

912
## Compilation
1013

1114
```bash
1215
erlc ip2proxy.erl test.erl
1316
```
1417

18+
## QUERY USING THE BIN FILE
19+
1520
## Methods
1621
Below are the methods supported in this package.
1722

@@ -43,3 +48,20 @@ Below are the methods supported in this package.
4348
```erlang
4449
test:testme().
4550
```
51+
52+
## QUERY USING THE IP2PROXY PROXY DETECTION WEB SERVICE
53+
54+
## Methods
55+
Below are the methods supported in this package.
56+
57+
|Method Name|Description|
58+
|---|---|
59+
|openws| Expects 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX11)</li></li><li>Use HTTPS or HTTP</li></ol> |
60+
|lookup|Query IP address. This method returns a map 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>|
61+
|getcredit|This method returns the web service credit balance.|
62+
63+
## Usage
64+
65+
```erlang
66+
test:testme2().
67+
```

0 commit comments

Comments
 (0)