@@ -98,6 +98,7 @@ Options:
98
98
-h, --help display help information
99
99
-p, --provider * set types of api provider (space separated) --provider=' ipdata ipinfo minfraud'
100
100
-i, --ip input ip address --ip=' 8.8.8.8'
101
+ --route set if you need route data from IRR --route
101
102
--debug set if you need verbose logs --debug
102
103
` ` `
103
104
@@ -111,9 +112,9 @@ $ export FRAUD_CHECK_IPINFOIO_TOKEN=yyy
111
112
# check ip address
112
113
$ ./go-ip-fraud-check single -p ' ipdata ipinfo' -i 8.8.8.8
113
114
114
- 2021/10/25 00:54:26 [INFO] [INFO] Use ipdata.co
115
- 2021/10/25 00:54:26 [INFO] [INFO] Use ipinfo.io
116
- {" list" :[{" service_name" :" ipdata.co" ," ip" :" 8.8.8.8" ," hostname" :" " ," isp" :" Google LLC" ," organization" :" " ," asn" :15169," risk_score" :0," is_anonymous" :false," is_anonymous_vpn" :false," is_hosting" :false," is_proxy" :false," is_tor" :false," is_bot" :false," is_bogon" :false," has_other_threat" :false," country" :" US" ," city" :" " ," region" :" " ," latitude" :0," longitude" :0," error" :" " },{" service_name" :" ipinfo.io" ," ip" :" 8.8.8.8" ," hostname" :" dns.google" ," isp" :" " ," organization" :" Google LLC" ," asn" :15169," risk_score" :0," is_anonymous" :false," is_anonymous_vpn" :false," is_hosting" :false," is_proxy" :false," is_tor" :false," is_bot" :false," is_bogon" :false," has_other_threat" :false," country" :" US" ," city" :" Mountain View" ," region" :" California" ," latitude" :37.4056," longitude" :-122.0775," error" :" " }]}
115
+ 2021/10/25 00:54:26 [INFO] Use ipdata.co
116
+ 2021/10/25 00:54:26 [INFO] Use ipinfo.io
117
+ {" list" :[{" service_name" :" ipdata.co" ," ip" :" 8.8.8.8" ," hostname" :" " ," isp" :" Google LLC" ," organization" :" " ," asn" :15169," risk_score" :0," is_anonymous" :false," is_anonymous_vpn" :false," is_hosting" :false," is_proxy" :false," is_tor" :false," is_bot" :false," is_bogon" :false," has_other_threat" :false," country" :" US" ," city" :" " ," region" :" " ," latitude" :0," longitude" :0," error" :" " },{" service_name" :" ipinfo.io" ," ip" :" 8.8.8.8" ," hostname" :" dns.google" ," isp" :" " ," organization" :" Google LLC" ," asn" :15169," risk_score" :0," is_anonymous" :false," is_anonymous_vpn" :false," is_hosting" :false," is_proxy" :false," is_tor" :false," is_bot" :false," is_bogon" :false," has_other_threat" :false," country" :" US" ," city" :" Mountain View" ," region" :" California" ," latitude" :37.4056," longitude" :-122.0775," error" :" " }], " as_prefix " :[ " 66.249.80.0/20 " , " 74.125.57.240/29 " , " 216.239.44.0/24 " , ...] }
117
118
` ` `
118
119
119
120
# ## list command
@@ -122,6 +123,7 @@ $ ./go-ip-fraud-check single -p 'ipdata ipinfo' -i 8.8.8.8
122
123
123
124
` ` ` bash
124
125
./go-ip-fraud-check list -h
126
+
125
127
Exec api call of ip address fraud check providers from csv list file
126
128
127
129
Options:
@@ -130,6 +132,7 @@ Options:
130
132
-p, --provider * set types of api provider (space separated) --provider=' ipdata ipinfo minfraud'
131
133
-i, --input * input csv/tsv file path --input=' ./input.csv'
132
134
-o, --output * output tsv file path --output=' ./output.tsv'
135
+ --route set if you need route data from IRR (this might be slow) --route
133
136
--debug set if you use HTTP debug feature --debug
134
137
` ` `
135
138
@@ -150,8 +153,8 @@ ip_address
150
153
151
154
# check risk from the CSV file
152
155
$ ./go-ip-fraud-check list -p ' ipdata ipinfo' -i ./input.csv -o ./output.tsv
153
- 2021/10/25 00:58:29 [INFO] [INFO] Use ipdata.co
154
- 2021/10/25 00:58:29 [INFO] [INFO] Use ipinfo.io
156
+ 2021/10/25 00:58:29 [INFO] Use ipdata.co
157
+ 2021/10/25 00:58:29 [INFO] Use ipinfo.io
155
158
2021/10/25 00:58:30 [INFO] exec # : [2]
156
159
2021/10/25 00:58:29 [INFO] exec # : [0]
157
160
2021/10/25 00:58:31 [INFO] exec # : [1]
@@ -185,6 +188,7 @@ func main() {
185
188
// you can set auth values to config directly, otherwise used from environment variables.
186
189
IPdatacoAPIKey: " <your ipdata.co API key>" ,
187
190
IPinfoioToken: " <your ipinfo.io API token>" ,
191
+ UseRoute: true,
188
192
Debug: false,
189
193
}
190
194
0 commit comments