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