Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Comments ban

Security covered Under active development 7 sites

This module allows site administrators to ban specific users from posting comments. It provides custom actions to remove comments and ban users, as well as to unban them. Additionally, it offers a dedicated view to manage users banned from the comments system.

This module allow to the sites administrators to Ban certain users from the Drupal's comments system.

How it works:

We have created Validation Constraint for the comments entity, in this constraint we validate if the user creating the comment is allowed to create it.

In order to achieve the ban functionality, we provided the following custom actions:

  • Remove comment and ban user (Could be added to any comments view)
  • Unban user from the comments (Could be added to any user view)

We also provide a brand new view called Users banned from comments, in this view you should be able to see and administer any user blocked from the Drupal comments system.

How to use it

Initial setup

Step 1:
Give permissions to some users to ban users from the comments. To do that just give the permission "administer users" to the role that you want to allow to ban users.

Step 2:
Enable the field "User banned from comments" to be use into the user account form settings.

Banning users

Banning a users is very simple, just go to the user profile page, press the edit button and then look for the field "User banned from comments" and check it.

Unbanning users

You could do it going directly to the user account edition and remove the check over the field "User banned from comments" or you could go to the following page: /admin/config/people/banned-from-comments and from there select multiple users and unban them using the our custom bulk operation.

Drupal 9–11

Ask your assistant about Comments ban

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • comment 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
Jan 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 9–11 Jun 7, 2024
1.0.2 Stable Apr 5, 2024
1.0.1 Stable 8–10 Jan 13, 2023