Content last modified Sunday 7 September 2008
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 3 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

nko_spamurl_blocker

This plug-in does two things:

  1. it checks author’s name, e-mail address, URI and message of a comment against certain words or phrases, which you can declare by replacing or adding as many
    $finder[] = 'insert spammy word or phrase';
    as you need.
  2. it checks if a comment begins with 4 or 5 uppercase words or digits.

In any of the above return true, this plug-in will flag the message as spam. If you’d rather prefer to not deal with spam and simply block unwanted comments before they are stored in the TXP database replace this line:

$evaluator -> add_estimate(SPAM, 0.6);

with

$evaluator -> add_estimate(RELOAD, 1, 'looks like spam');.

You can customize the “looks like spam” message with one of your choice.

Usage

Edit the plug-in and replace or add as many

$finder[] = 'insert spammy word or phrase';

as you need. Example:

  • $finder[] = 'cialis;
  • $finder[] = 'viagra';

and so on.

Credits

Most of the work was done by Mr. Warren with his excellent mrw_spamkeywords_urlcount with a little help from me and a lot of help from Ruud van Melick.

Article Request Count:
Initially released:
7 march 2007
Posted here:
07 Mar 2007
Article modified:
29 Jan 2008

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site. Get a Gravatar.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
TxP · TxD · GG