Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
Flag it:
nko_spamurl_blocker
This plug-in does two things:
- 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. - 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.
Initially released:
7 march 2007Posted here:
07 Mar 2007Article modified:
29 Jan 2008









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site. Get a Gravatar.