Skip to content

Commit 7694f10

Browse files
committed
Add IP-Risk sample db
1 parent 679e37e commit 7694f10

31 files changed

+34
-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",

source-data/GeoIP2-IP-Risk-Test.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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_hosting_provider": true,
23+
"is_public_proxy": true,
24+
"is_residential_proxy": true,
25+
"is_tor_exit_node": true
26+
}
27+
},
28+
{
29+
"::214.2.3.6/128": {
30+
"ip_risk": 85
31+
}
32+
}
33+
]
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.

test-data/GeoIP2-Enterprise-Test.mmdb

0 Bytes
Binary file not shown.

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

3.06 KB
Binary file not shown.

test-data/GeoIP2-ISP-Test.mmdb

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

test-data/GeoIP2-User-Count-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-ASN-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-City-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-Country-Test.mmdb

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

test-data/MaxMind-DB-test-nested.mmdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)