Skip to content

Commit cc4043a

Browse files
authored
Update README.md
1 parent f908e1e commit cc4043a

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,45 @@ Url to check if parsed IP address belongs to a country you don't want to connect
121121
```
122122
Key in json response
123123
```
124+
"ipcheckblacklist"
125+
```
126+
Mode for ipchecker - if "true" it blocks ip addresses when they match, if "false" it add only ip of given country
127+
```
124128
"ipcheckvalue"
125129
```
126-
Value in json response
130+
Array of values in json response
127131

128132
It may look like
129133
```
130134
"ipcheckserver":"https://ipinfo.io/",
131135
"ipcheckkey":"country",
132-
"ipcheckvalue":"RU"
136+
"ipcheckblacklist":true,
137+
"ipcheckvalue":[
138+
"RU",
139+
"CN"
140+
]
133141
```
134142
or
135143
```
136144
"ipcheckserver":"api.2ip.io/",
137145
"ipcheckkey":"country",
138-
"ipcheckvalue":"Russian Federation"
146+
"ipcheckblacklist":true,
147+
"ipcheckvalue":[
148+
"Russian Federation",
149+
"China"
150+
]
151+
```
152+
or whitelist mode
153+
```
154+
"ipcheckserver":"https://ipinfo.io/",
155+
"ipcheckkey":"country",
156+
"ipcheckblacklist":false,
157+
"ipcheckvalue":[
158+
"NL",
159+
"FR"
160+
]
139161
```
162+
--------
140163
I found two servers wich can get simple request and send json response. To check it i used curl
141164
```
142165
curl https://ipinfo.io/1.2.3.4

0 commit comments

Comments
 (0)