Clarify "Ban" module replacement - support for contrib modules that require "Ban"?

Created on 1 September 2025, about 1 month ago

Problem/Motivation

Hi and thank you very much for this module.

The module doesn't technically clear point out, how this replaces the core ban module.
Does this built upon the ban tables and works with other modules that rely on "Ban"? (That would be great!!)

For example, would this work with the Perimeter module or Crowdsec β†’ out of the box?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

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

    Hi Julian, thanks for your interest in the module.
    Advban is a sort of fork of the core Ban module and uses its own table.
    Advban can be used by other modules, such as Perimeter, as a ban provider if they want to of course.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks @goodboy - technically that would mean that these modules need to switch from ban to advban in their .info.yml right? Or could advban work on top of ban in the future, "hot-swapping" / overriding ban without the need to remove the ban dependency in the contrib modules? (That would be fabulous architecturally!)

  • πŸ‡ΊπŸ‡¦Ukraine goodboy Kharkiv, Ukraine

    @anybody, yes, that's right, modules should change module dependencies. Initially, advban was made as a fork, not an extension. Perhaps this was incorrect, but I wanted to be independent of the ban core module. However, ban is now considered obsolete and will be removed from the core in Drupal 12, so module developers will have to change the dependency anyway. In this sense, advban and ban are on the same level, so why not choose advban in this case?

Production build 0.71.5 2024