diff --git a/update_blocklist.sh b/update_blocklist.sh index 9322022..6322c5a 100644 --- a/update_blocklist.sh +++ b/update_blocklist.sh @@ -253,6 +253,7 @@ while read BLOCKED_IP ; do # check GeoIP if [ "$useGeoIP" = blockonly ] || [ "$useGeoIP" = blockother ]; then request_GeoIP_result="$(request_GeoIP "$BLOCKED_IP")" + if grep -qi "is not in the database" <<<"$request_GeoIP_result" ; then # is not in the database request_GeoIP_result="empty"