@@ -98,6 +98,7 @@ Options:
9898 -h, --help display help information
9999 -p, --provider * set types of api provider (space separated) --provider=' ipdata ipinfo minfraud'
100100 -i, --ip input ip address --ip=' 8.8.8.8'
101+ --route set if you need route data from IRR --route
101102 --debug set if you need verbose logs --debug
102103` ` `
103104
@@ -111,9 +112,9 @@ $ export FRAUD_CHECK_IPINFOIO_TOKEN=yyy
111112# check ip address
112113$ ./go-ip-fraud-check single -p ' ipdata ipinfo' -i 8.8.8.8
113114
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 " , ...] }
117118` ` `
118119
119120# ## list command
@@ -122,6 +123,7 @@ $ ./go-ip-fraud-check single -p 'ipdata ipinfo' -i 8.8.8.8
122123
123124` ` ` bash
124125./go-ip-fraud-check list -h
126+
125127Exec api call of ip address fraud check providers from csv list file
126128
127129Options:
@@ -130,6 +132,7 @@ Options:
130132 -p, --provider * set types of api provider (space separated) --provider=' ipdata ipinfo minfraud'
131133 -i, --input * input csv/tsv file path --input=' ./input.csv'
132134 -o, --output * output tsv file path --output=' ./output.tsv'
135+ --route set if you need route data from IRR (this might be slow) --route
133136 --debug set if you use HTTP debug feature --debug
134137` ` `
135138
@@ -150,8 +153,8 @@ ip_address
150153
151154# check risk from the CSV file
152155$ ./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
1551582021/10/25 00:58:30 [INFO] exec # : [2]
1561592021/10/25 00:58:29 [INFO] exec # : [0]
1571602021/10/25 00:58:31 [INFO] exec # : [1]
@@ -185,6 +188,7 @@ func main() {
185188 // you can set auth values to config directly, otherwise used from environment variables.
186189 IPdatacoAPIKey: " <your ipdata.co API key>" ,
187190 IPinfoioToken: " <your ipinfo.io API token>" ,
191+ UseRoute: true,
188192 Debug: false,
189193 }
190194
0 commit comments