Simple Spam Protector

Simple Spam Protector provides an easy and transparent way of avoiding comment spam by identifying bot-like behaviour without complicated checks.

Requirements

  • SilverStripe 2.3
  • Spam Protection module (0.2.1) -  Link

Installation

Extract to a folder in your SilverStripe installation directory.

Add the following line to your site _config.php:

SpamProtectorManager::set_spam_protector('SimpleSpamProtector');

Configuration

By default a comment must be submitted within 120 minutes of the page load. To modify this value, add the following line to your _config.php file:

SimpleSpamProtector::$timeout = 120; // New time-out value here.

Also by default a page can receive comments up to 14 days from the last modified date. To change this value, add the following line to your _config.php file:

SimpleSpamProtector::$page_max_age = 7; // New expiry time in days

Note that setting $page_max_age to 0 will disable this feature.

Report a Bug / Feature Requests

Create a ticket