You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,3 +113,62 @@ how many configs do you want to extract from this page
113
113
if true parsing will done from top to bottom.
114
114
- Use "true" for pages where new information placing at the top, like sites
115
115
- Use "false" for pages where new information placing at the bottom, like telegram channels and some forums
116
+
117
+
The following block of parameters is used to filter ip addresses by country. Because some genius makes shadowsocks servers in country with powerfull censorship like Russia)
118
+
119
+
```
120
+
"ipcheckserver"
121
+
```
122
+
Url to check if parsed IP address belongs to a country you don't want to connect to.
123
+
124
+
```
125
+
"ipcheckkey"
126
+
```
127
+
Key in json response
128
+
```
129
+
"ipcheckvalue"
130
+
```
131
+
Value in json response
132
+
133
+
It may look like
134
+
```
135
+
"ipcheckserver":"https://ipinfo.io/",
136
+
"ipcheckkey":"country",
137
+
"ipcheckvalue":"RU"
138
+
```
139
+
or
140
+
```
141
+
"ipcheckserver":"api.2ip.io/",
142
+
"ipcheckkey":"country",
143
+
"ipcheckvalue":"Russian Federation"
144
+
```
145
+
I found two servers wich can get simple request and send json response. To check it i used curl
146
+
```
147
+
curl https://ipinfo.io/1.2.3.4
148
+
```
149
+
or
150
+
```
151
+
curl api.2ip.io/1.2.3.4
152
+
```
153
+
In output you can see how it returns country. For example
154
+
```
155
+
curl api.2ip.io/1.2.3.4
156
+
{
157
+
"ip": "1.2.3.4",
158
+
"city": "Moscow",
159
+
"region": "Moscow",
160
+
"country": "Russian Federation",
161
+
"code": "RU",
162
+
"emoji": ""
163
+
"lat": "",
164
+
"lon": "",
165
+
"timezone": "Europe/Moscow",
166
+
"asn": {
167
+
"id": "",
168
+
"name": "",
169
+
"hosting": false
170
+
},
171
+
"signup": "Get more at 2ip.io/free"
172
+
}
173
+
```
174
+
If you know another servers like those two let me know
0 commit comments