Merge ban with new range ban

Created on 7 August 2024, 4 months ago
Updated 8 August 2024, 4 months ago

Problem/Motivation

Right now, I am getting hit by a several misbehaving bots, so I'm using Advanced ban to block these requests. Here's a common scenario. I see one suspicious IP hitting my site, so I block that. Later, I see a similar IP hitting my site. It might match the first several digits, because it turns out, my site is getting hit by a network of bots from a single cloud computing source. I'd like to just ban the range, starting with the earliest IP, but if I enter that, I get a validating error that the IP already exists.

Proposed resolution

My request is that instead of an error here, Advanced Ban just simply merges these records, and consolidates the old record under the new IP range record. I suppose I can just mitigate this by incrementing one of the digits in the address, but it's easy to overlook that when you are quickly trying to block a swarm of bots.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bburg Washington D.C.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bburg
  • πŸ‡ΊπŸ‡¦Ukraine goodboy Kharkiv, Ukraine

    Hello @bburg, thanks for your proposition.

    I think I could be add a "Merge" button to addition to "Add" button.
    If you pushed to the Merge button and if you entered a range IP - we won't check existing IP.

Production build 0.71.5 2024