README.md

iphub

lifecycle

An interfact to iphub’s API https://iphub.info, which looks up IP address and returns basic information along with blocking recommendations.

Installation

Install the development version from Github with:

## install remotes pkg if not already
if (!requireNamespace("remotes")) {
  install.packages("remotes")
}

## install from github
remotes::install_github("mkearney/iphub")

Use

Example

## vector of IP addresses
ips <- c("192.0.2.1", "255.255.255.0")

## lookup info
iphub(ips)
#> # A tibble: 2 x 8
#>   ip      countryCode countryName   asn isp   block hostname block_text    
#>   <chr>   <chr>       <chr>       <int> <chr> <int> <chr>    <chr>         
#> 1 192.0.… ZZ          Unknown         0 ""        0 192.0.2… Residential/U…
#> 2 255.25… ZZ          Unknown         0 ""        0 255.255… Residential/U…


mkearney/iphub documentation built on May 13, 2019, 5:24 p.m.