Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Unobtrusive spam protection for SilverStripe CMS

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 code
Octocat-spinner-32 css
Octocat-spinner-32 lang
Octocat-spinner-32 README.md
Octocat-spinner-32 _config.php
Octocat-spinner-32 composer.json
README.md

Invisible Spam Protection

Maintainers

Introduction

Very simple anti spam protection based on principle that automated spammers enter bogus information in all form fields.

Field is added to form that is hidden using CSS hiding it from human users.

Form is only allowed to be submitted if field is empty.

Includes an EditableInvisibleSpamField to integrate with the UserForms module.

Requirements

  • Spam Protection
  • SilverStripe 3.#

Install Spam Protection Module

The Spam Protection Module (http://silverstripe.org/spam-protection-module) provides the basic interface for managing the spam protection. If your are not using composer to manage your dependencies , you have to install this module manually.

Setting up InvisibleSpamProtection

With composer (recomended)

Add this to your composer.json:

{
    "require": {
        "marijnkampf/InvisibleSpamProtection": "dev-master"
    }
}

or execute the following command

php composer.phar require "marijnkampf/InvisibleSpamProtection": "dev-master"

After that execute

php composer.phar update "marijnkampf/InvisibleSpamProtection"

to install the module. If you have set your minimum-stability to stable, you may need to install the spam-protection-module explicitly:

php composer.phar require "silverstripe/spamprotection": "1.0.x-dev"
php composer.phar update  

without composer (traditional way)

Download the module and extract it, into a folder which should be named InvisibleSpamProtection.

Enable the Module

Enable anti spam in mysite/_config.php by adding line

SpamProtectorManager::set_spam_protector('InvisibleSpamProtector');
Something went wrong with that request. Please try again.