get_last_added_ips: Query <blocklist.de> API for IPs blocked in since a period in...

Description Usage Arguments Examples

View source: R/blocklist.r

Description

Query <blocklist.de> API for IPs blocked in since a period in time, optionally filtering by service

Usage

1
2
3
4
get_last_added_ips(since = NULL, service = c("all", "amavis", "apacheddos",
  "asterisk", "badbot", "ftp", "imap", "ircbot", "mail", "pop3", "regbot",
  "rfi-attack", "sasl", "ssh", "w00tw00t", "portflood", "sql-injection",
  "webmin", "trigger-spam", "manuall", "bruteforcelogin"))

Arguments

since

either a UNIX timestamp (e.g. 1459736686), a string in "HH:MM" format or a time difference in seconds (e..g 3600). The API will return all requested IPs logged since that time. Leave NULL for the API default.

service

only return addresses for a given service. Default: all services.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# defaults
get_last_added_ips()

# last hour
get_last_added_ips(3600)

# since 3PM today
get_last_added_ips("15:00")

# for ssh blocks in the last hour
get_last_added_ips(3600, "ssh")

hrbrmstr/blocklist documentation built on May 17, 2019, 4:55 p.m.