unisolutions/silverstripe-uniprotect

There is no license information available for the latest version (dev-master) of this package.

Simple, yet good spam protection module for Silverstripe.

Installs: 1 639

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 3

Open Issues: 3

Type:silverstripe-module

dev-master 2016-01-10 22:18 UTC

This package is not auto-updated.

Last update: 2024-11-18 15:35:59 UTC


README

Introduction

Provides a hidden FormField which allows form to validate for non-bot submissions by checking if the value in that field is correct.

Maintainer Contact

  • Elvinas Liutkevičius <elvinas (at) unisolutions (dot) eu>

Requirements

Installation

  • Copy the uniprotect directory into your main SilverStripe webroot
  • Run ?flush=1

Usage

As a Standalone Field

If you want to use UniProtect field by itself, you can simply just include it as a field in your form.

$uniprotectField = new UniProtectField('MyUniProtect');

Integration with Spamprotection module

This requires the SpamProtection module to be installed, see its documentation for details. You can use this field to protect any built informs on your website, including user comments in the Blog module.

Configuration example in mysite/_config/config.yml

FormSpamProtectionExtension:
	default_spam_protector: 'UniProtectProtector'

Then once you have setup this config you will need to include the spam protector field as per the instructions on the SpamProtection module page.