File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed
Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -121,22 +121,45 @@ Url to check if parsed IP address belongs to a country you don't want to connect
121121```
122122Key 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
128132It 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```
134142or
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+ --------
140163I found two servers wich can get simple request and send json response. To check it i used curl
141164```
142165curl https://ipinfo.io/1.2.3.4
You can’t perform that action at this time.
0 commit comments