Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Webform Allowed Charactersets

No security coverage

Part of the Webform ecosystem · 161 projects

View on drupal.org

Add characterset restrictions to your webforms. If you for example have russian spam still comming through your current anti-spam measures on your webforms, you can use this module to simply not allow cyrillic input. Then webforms will fail validation if russian/cyrillic characters are entered in any of the input fields so the form cannot be submitted.

Features

You can allow any of the 20 most common charactersets, like Latin, Cyrillic, Chinese, Japanese, Korean, ...
If you need a specific characterset that is not listed, please create an issue. It's rather simple to add one if you know the regex that can identify it. You can either set the module to add the validation on all webforms, or you can add the Webform Handler that this module provides to only the specific webforms where you would want to have characterset validation.

Installation

Get the module:
composer require drupal/webform_allowed_charactersets
Enable the module:
drush en webform_allowed_charactersets
Go to the settings page at:
/admin/structure/webform/config/charactersets
You can reach this via the menu via Structure -> Webforms -> Settings -> Allowed charactersets.
Apply the settings that you would like for your project.

Additional Requirements

This module is designed to be used for webforms. So Webforms is a required module.

Help to make it better

I welcome each and any ticket / issue to make this project better. The most useful are proposed patches / MRs so if they are community reviewd they can be implemented right away. Also: this module does not have tests at this moment. Any help with that will also be greatly appreciated. And one of the first issues I can think of myself is to have the validation message 'Invalid input' configurable.

So feel free to test / use this module, provide feedback and create issues to make it better.
If I can help even a few companies to get less spam, then I think creating this module was worth the effort.
We use this ourselves at our company for a few clients where spam still got through reCaptcha and Honeypot. Since that spam that got through was cyrillic text, this module is a great addition to work right besides the other anti-spam modules.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable May 8, 2024
1.0.1 Stable May 7, 2024
1.x-dev Dev Apr 12, 2024
1.0.0 Stable Apr 12, 2024