idleworks/form-badwords 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

idleworks/form-badwords

Composer 安装命令:

composer require idleworks/form-badwords

包简介

Form: Badwords validator

README 文档

README

Adds a validator to TYPO3's form framework that checks user input against a list of bad words. An example list is bundled with this package, but it can be customized as needed.

This feature was originally developed to detect bad words submitted through contact forms. However, it can also be used to block certain email addresses, domain parts (e.g., junk mail providers), or known disruptive users.

Installation

composer require idleworks/form-badwords

The required TypoScript is automatically included in your setup.

Configuration

Add the validator to form fields

Each form field you want to validate must be equipped with the new Badwords validator. You can configure this in the Form Manager within the TYPO3 backend.

Customize badwords file

This extension comes with an example bad words list. You can customize it to suit your specific needs. To do this, update the path to the badwords file in the extension configuration using the Install Tool.

Important:

If you place the badwords file in a publicly accessible directory (e.g., fileadmin), it may be indexed by search engines — which is likely not desirable. Therefore, make sure to protect the file using an .htaccess rule or equivalent server configuration.

You can use regular expressions to tune your badwords list. Comments starting with a hash (#) are also possible and are excluded from processing.

Examples

# Matches word parts (e.g. "send nudes")
nude
# Matches only the word "nude"
\b(nude)\b
# Matches all email address of mailinator.com
@mailinator\.com$

统计信息

  • 总下载量: 1.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固