Skip to content

Commit 1ca40fb

Browse files
authored
Merge pull request #145 from maxmind/marsel/ipriskdb
IP-Risk sample db
2 parents 679e37e + 02de12f commit 1ca40fb

31 files changed

+32
-0
lines changed

pkg/writer/geoip2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func (w *Writer) WriteGeoIP2TestDB() error {
2323
"GeoIP2-DensityIncome",
2424
"GeoIP2-Domain",
2525
"GeoIP2-Enterprise",
26+
"GeoIP2-IP-Risk",
2627
"GeoIP2-ISP",
2728
"GeoIP2-Precision-Enterprise",
2829
"GeoIP2-Static-IP-Score",
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[
2+
{
3+
"::214.2.3.0/126": {
4+
"ip_risk": 25,
5+
"is_anonymous": true,
6+
"is_anonymous_vpn": true
7+
}
8+
},
9+
{
10+
"::214.2.3.4/128": {
11+
"ip_risk": 50,
12+
"is_anonymous": true,
13+
"is_anonymous_vpn": true,
14+
"is_tor_exit_node": true
15+
}
16+
},
17+
{
18+
"::214.2.3.5/128": {
19+
"ip_risk": 90,
20+
"is_anonymous": true,
21+
"is_anonymous_vpn": true,
22+
"is_residential_proxy": true,
23+
"is_tor_exit_node": true
24+
}
25+
},
26+
{
27+
"::214.2.3.6/128": {
28+
"ip_risk": 85
29+
}
30+
}
31+
]
0 Bytes
Binary file not shown.

test-data/GeoIP2-City-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-Country-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-Domain-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-IP-Risk-Test.mmdb

3.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)