2017 © Pedro Peláez
 

silverstripe-module silverstripe-suspendspammer

Suspends a suspected forum spammer registration based on user supplied keywords

image

camfindlay/silverstripe-suspendspammer

Suspends a suspected forum spammer registration based on user supplied keywords

  • Thursday, February 4, 2016
  • by camfindlay
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,893 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 11 Versions
  • 8 % Grown

The README.md

Suspend Spammer

Build Status, (*1)

Overview

This module checks new Member object writes against a user defined set of trigger keywords which may indicated that the Member is in fact a spammer. This is for use alongside the silverstripe/silverstripe-forum., (*2)

Maintainers

Cam Findlay cam@silverstripe.com, (*3)

Requirements

Installation

Best practice is to install via composer (otherwise download files and unzip to your webroot):, (*4)

composer require camfindlay/silverstripe-suspendspammer dev-master

Run dev/build in the browser (http://yourwebsite/dev/build?flush=all), (*5)

or, (*6)

via command line, (*7)

sake (cd <yourwebroot> && ./sapphire/sake dev/build flush=all)

Usage

Simply go to the CMS, access the Spam Keywords menu then add any spam related keywords you wish to check when a new member registers or posts the content of their first forum post., (*8)

By default SuspendSpammer check the Occupation and Company fields (added by the silverstripe/forum module). This can be changed by setting the following static in your _config/config.yml file and supplying an array of keywords., (*9)

Member:
  fields_to_check:
    - Occupation
    - Company
    - AnyOtherKeywords

You can also create a CSV file of keywords using the column heading 'Title' and import through the default ModelAdmin importer., (*10)

Email Notifications

In order to be notified when a suspected spam registration or post is automatically suspended you can enable email notification and designate an email address to receive the notification emails., (*11)

The notification email includes the email address of the suspected spammer (so you can look them up in the Security section of SilverStripe CMS) as well as the fields set in the '$fields_to_check' against which the spam keywords matched., (*12)

This will allow you to perform a quick smoke test in case there was a false-positive and the registration was a legitimate member., (*13)

To enable set the following in your _config/config.yml file:, (*14)

Admin:
  admin_email: 'admin@yourdomain.com'
SuspendSpammerEmail:
  email_to: you@yourdomain.com
  enable_email: true

The 'admin_email' is the address the email will come from, 'email_to' sets the address of the person you wish to be notified of the spam registration. Lastly you have to enable notification emails with 'enable_email'., (*15)

License

Copyright (c) 2015, Cam Findlay All rights reserved., (*16)

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:, (*17)

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer., (*18)

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution., (*19)

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission., (*20)

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE., (*21)

The Versions

04/02 2016

dev-master

9999999-dev

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

26/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

26/08 2015

1.0.0

1.0.0.0

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

26/08 2015

dev-features/checkpostforspam

dev-features/checkpostforspam

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

25/02 2015

0.1.x-dev

0.1.9999999.9999999-dev

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

25/02 2015

0.1.1

0.1.1.0

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

12/02 2015

0.2.x-dev

0.2.9999999.9999999-dev

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

12/02 2015

0.2.1

0.2.1.0

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

25/09 2014

0.2.0

0.2.0.0

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

10/01 2014

0.1.0

0.1.0.0

Suspends a suspected forum spammer registration based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum

02/01 2014

0.1.0-rc1

0.1.0.0-RC1

Suspends a suspected forum spammer based on user supplied keywords

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

silverstripe spam forum