An interfact to iphub’s API https://iphub.info, which looks up IP address and returns basic information along with blocking recommendations.
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")
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…
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.