Skip to content

Bans and lists ​

Bans block an address for a time, either added by hand or made automatically by a rule. Address lists are named sets of addresses and networks that access rules and the bot catalog can use.

waap bans list ​

Lists the active bans, manual and automatic, with the time left.

sh
waap bans list

waap bans add ​

Bans an address, or the client of an event.

sh
waap bans add [-for DURATION] [-m REASON] (-event EVENT-ID | IP)
  • -for is the ban length. The default is 1 hour. The maximum for a manual ban is 720h (30 days).
  • Give either an IP address, or -event with an event ID to ban that event's client.
  • The ban takes effect within a few seconds on every inspection service.
sh
waap bans add -for 2h -m "scanner" 203.0.113.9
waap bans add -event EVENT-ID

waap bans remove ​

Lifts a ban on an address.

sh
waap bans remove IP

waap lists ​

Lists the address lists: source, size, last fetch and its result.

sh
waap lists

waap lists get ​

Prints the address lists (ip_lists) as YAML.

sh
waap lists get [-json]

waap lists set ​

Replaces the address lists with the records in FILE (YAML or JSON; - reads standard input).

sh
waap lists set -f FILE [-m WHY] [-dry-run]

Each record has name, and either:

  • cidrs: addresses or networks, or
  • url: an https URL that is fetched, with refresh (default 1h).

An empty list ([]) removes them all. A list an access rule or the bot catalog uses cannot be removed. The error names the user.

Operators and administrators of all applications.