Skip to content

Commit 83c4a4a

Browse files
authored
Update README.md
1 parent 2798b74 commit 83c4a4a

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,46 @@ Url to check if parsed IP address belongs to a country you don't want to connect
126126
```
127127
Key in json response
128128
```
129+
"ipcheckblacklist"
130+
```
131+
Mode for ipchecker - if "true" it blocks ip addresses when they match, if "false" it add only ip of given country
132+
```
129133
"ipcheckvalue"
130134
```
131-
Value in json response
135+
Array of values in json response
132136

133137
It may look like
134138
```
135139
"ipcheckserver":"https://ipinfo.io/",
136140
"ipcheckkey":"country",
137-
"ipcheckvalue":"RU"
141+
"ipcheckblacklist":true,
142+
"ipcheckvalue":[
143+
"RU",
144+
"CN"
145+
]
138146
```
139147
or
140148
```
141149
"ipcheckserver":"api.2ip.io/",
142150
"ipcheckkey":"country",
143-
"ipcheckvalue":"Russian Federation"
151+
"ipcheckblacklist":true,
152+
"ipcheckvalue":[
153+
"Russian Federation",
154+
"China"
155+
]
144156
```
157+
or whitelist mode
158+
```
159+
"ipcheckserver":"https://ipinfo.io/",
160+
"ipcheckkey":"country",
161+
"ipcheckblacklist":false,
162+
"ipcheckvalue":[
163+
"NL",
164+
"FR"
165+
]
166+
```
167+
-------
168+
145169
I found two servers wich can get simple request and send json response. To check it i used curl
146170
```
147171
curl https://ipinfo.io/1.2.3.4

0 commit comments

Comments
 (0)