Skip to content

Commit 6b88d38

Browse files
authored
Update README.md for ver 1.2
1 parent 2f3df70 commit 6b88d38

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,63 @@ how many configs do you want to extract from this page
107107
```
108108
if true parsing will done from top to bottom.
109109
- Use "true" for pages where new information placing at the top, like sites
110-
- Use "false" for pages where new information placing at the
110+
- Use "false" for pages where new information placing at the
111+
112+
The following block of parameters is used to filter ip addresses by country. Because some genius makes servers(for example shadowsocks) in country with powerfull censorship, like Russia
113+
114+
```
115+
"ipcheckserver"
116+
```
117+
Url to check if parsed IP address belongs to a country you don't want to connect to.
118+
119+
```
120+
"ipcheckkey"
121+
```
122+
Key in json response
123+
```
124+
"ipcheckvalue"
125+
```
126+
Value in json response
127+
128+
It may look like
129+
```
130+
"ipcheckserver":"https://ipinfo.io/",
131+
"ipcheckkey":"country",
132+
"ipcheckvalue":"RU"
133+
```
134+
or
135+
```
136+
"ipcheckserver":"api.2ip.io/",
137+
"ipcheckkey":"country",
138+
"ipcheckvalue":"Russian Federation"
139+
```
140+
I found two servers wich can get simple request and send json response. To check it i used curl
141+
```
142+
curl https://ipinfo.io/1.2.3.4
143+
```
144+
or
145+
```
146+
curl api.2ip.io/1.2.3.4
147+
```
148+
In output you can see how it returns country. For example
149+
```
150+
curl api.2ip.io/1.2.3.4
151+
{
152+
"ip": "1.2.3.4",
153+
"city": "Moscow",
154+
"region": "Moscow",
155+
"country": "Russian Federation",
156+
"code": "RU",
157+
"emoji": ""
158+
"lat": "",
159+
"lon": "",
160+
"timezone": "Europe/Moscow",
161+
"asn": {
162+
"id": "",
163+
"name": "",
164+
"hosting": false
165+
},
166+
"signup": "Get more at 2ip.io/free"
167+
}
168+
```
169+
If you know another servers like those two let me know

0 commit comments

Comments
 (0)