This project is not covered by Drupal’s security advisory policy.
INTRODUCTION
The Swear Words is a simply module that checks the body of the comments allowing the admins of the site specify certain words that won't allow the anonymous/registered user publish the comment if it contains some one the words/phrases we specify in the config form. This is my first drupal contrib module, feel free to suggest new functionalities to the module and I will keep it updated!
INSTALLATION
The installation of this module is like other Drupal modules.
- Install the core module Comment.
- composer require drupal/swear_words
- Enable the module and create a comment type.
- Set up the settings and the words con the config form. (/admin/config/content/swear-words)
CONFIGURATION
- Build a new comment type and create a new comment body or use the provided by default.
- Specify on the config form the field body machine name that your comments will use (by default "comments_body") and write the words/phrases desired to deny the user auto-publish the comment if contains some of this.
Supporting organizations:
Project information
- Project categories: Administration tools, Content editing experience, Access control
- Created by david.carmona on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

