Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 4 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

nko_spamurl_blocker

This plug-in is no longer being updated, not it is guaranteed to work correctly anymore.
Please, from now on, refer to the superior rah_comment_spam.

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.

If any of the above returns true, the plug-in will flag the message as spam. If you’d rather prefer not to deal with spam and simply block unwanted comments before they are stored into 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:

Archived [?]: superceded

Keywords/tags:
Initially released:
7 march 2007
Posted here:
07 Mar 2007
Article modified:
30 Aug 2012

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.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern