Version 4.10.0

hirondelle.web4j.security
Class SpamDetectorImpl

Object
  extended by hirondelle.web4j.security.SpamDetectorImpl
All Implemented Interfaces:
SpamDetector

public class SpamDetectorImpl
extends Object
implements SpamDetector

Fails all text containing links, except those appearing in wiki-style formatting.

Almost all spam contains links. This implementation will reject all text that contains 'http://', except if the text contains any wiki-style links in the form [link:http://www.google.ca Google].


Constructor Summary
SpamDetectorImpl()
           
 
Method Summary
 boolean isSpam(String aText)
          See class comment.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpamDetectorImpl

public SpamDetectorImpl()
Method Detail

isSpam

public boolean isSpam(String aText)
See class comment.

Specified by:
isSpam in interface SpamDetector
Parameters:
aText - value of a request parameter.

Version 4.10.0

Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.