Skip to content

Raruto/cockpit-honeypot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cockpit-honeypot

Honeypot addon for Cockpit CMS

Features

  • Add "honeypot" switch to Forms settings
  • Automatically append "honeypot" field to cockpit Forms::open api
  • Automatically validate "honeypot" submitted field to cockpit Forms::submit
  • Automatically exclude invalid submissions from saved entries

Installation

Manual

Download latest release and extract to COCKPIT_PATH/addons/Honeypot directory

Git

git clone https://github.com/Raruto/cockpit-honeypot.git ./addons/Honeypot

Cockpit CLI

php ./cp install/addon --name Honeypot --url https://github.com/Raruto/cockpit-honeypot.git

Composer

  1. Make sure path to cockpit addons is defined in your projects' composer.json file:
{
    "name": "MY_PROJECT",
    "extra": {
        "installer-paths": {
            "cockpit/addons/{$name}": ["type:cockpit-module"]
        }
    }
}
  1. In your project root run:
composer require raruto/cockpit-honeypot

Related projects: ExtendedForms, FormValidation

Compatibile with: Cockpit CMS