@Kaspar This code works fine also with IPv6:
#!/bin/bash
# Your AbuseIPDB API Key
API_KEY="123"
# File where already reported IPs are stored
REPORTED_IPS_FILE="/var/log/reported_ips.log"
# If the file doesn't exist, create it
[ ! -f "$REPORTED_IPS_FILE" ] && touch "$REPORTED_IPS_FILE"...