Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Auto UnBan

517 sites Security covered Drupal 8–11
View on drupal.org

This module extends Drupal's core ban functionality to automatically unban IP addresses after a set time. It uses an exponential strategy to increase ban durations for repeat offenders and integrates with other ban modules and Drush commands.

This augments core's ban module to automatic unban IP's after a period of time. Unlike other ban modules (advban and autoban), this works with ban module rather than replacing it.

This is best used with automatic ban modules such as perimeter (requires #3349053: Make perimeter compatible with fast404 module and use DI for ban.ip_manager)

This implements an exponential growth strategy on the period of time that an IP is banned.

1. The first time the IP is banned, set the expiration to the configured number of seconds (defaults to an hour).
2. If the IP has been banned before, and the ban has expired, double the ban period.
3. If the IP is still in their ban period, extend it by the previous ban time by the same amount applied with the current ban (this will usually not happen because banned user's are rejected quickly using core's ban middleware).

Core's ban form can be used to ban user's, but their initial ban time is always determined by the configuration setting. There is a simple configuration form to set this. It would be a nice future enhancement to alter core's ban form to allow setting this per user.

This also adds drush commands to ban, unban, and list the banned.

Depends on

Dependencies of the latest stable release

  • ban Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Nov 2024
Latest release
1 month ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.6 Stable 8–11 Jul 7, 2026
1.0.5 Stable 8–11 Mar 13, 2025
1.0.4 Stable 8–11 Nov 27, 2024