craftcms / contact-form-honeypot
Add a honeypot captcha to your Craft CMS contact form
Installs: 120 559
Dependents: 5
Suggesters: 0
Security: 0
Stars: 26
Watchers: 5
Forks: 4
Open Issues: 3
Type:craft-plugin
Requires
- craftcms/cms: ^4.0.0-RC3|^5.0.0-beta.1
Requires (Dev)
- craftcms/contact-form: *
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- craftcms/rector: dev-main
This package is auto-updated.
Last update: 2024-12-19 22:56:11 UTC
README
This plugin allows you to add a honeypot captcha to your Craft CMS contact form.
Requirements
This plugin requires Craft CMS 4.0.0+ or 5.0.0+, and the Contact Form plugin.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Contact Form Honeypot”. Then click on the “Install” button in its modal window.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require craftcms/contact-form-honeypot # tell Craft to install the plugin ./craft plugin/install contact-form-honeypot
Setup
To configure the plugin, go to Settings → Contact Form Honeypot, and choose a param name that your honeypot field should have.
Then edit your contact form template(s), and add the honeypot field.
<input id="secretHoneypotParamName" name="secretHoneypotParamName" type="text">
You can hide the field with CSS:
input#secretHoneypotParamName { display: none; }