Both the list of triggers and the message are customisable, allowing you to control who is shown the message and what they are shown.
It is also possible to redirect potential spammers to a URL of your choice, either immediately (bypassing the warning) or after a certain number of potential spam visits from the same IP address. Note: the number of visits calculated only includes visits where a trigger is tripped (not if the same IP address visits your site via a different method) and includes page refreshes.
- Records visitors who have been warned, allowing you too see instances of warnings (in the Log).
- Allows you to navigate directly from the Log to the Edit Comments page for warned commentators IP address, so you can see any comments they’ve left.
- Allows you to see if a comment author has been warned, when browsing comments in the Admin panel.
- Allows you to see if a comment author has been warned when you get new comment and moderation required emails.
I suspect that this plugin will NOT be compatible with WP Super Cache at this point. I will be doing some testing in the near future and, if necessary, changing the plugin so it does work with WP Super Cache.
This plugin builds upon code from the following sources:
- RT Cunningham’s How to Reduce AdSense Impressions while Improving CTR post.
- Donncha O Caoimh’s Win a trip to Disneyland post.
- Donncha O Caoimh’s Comment Referrers plugin.
- Download the plugin file and unzip it.
- Upload the
comment-warningfolder to the
- Activate the Comment Warning plugin within WordPress.
Alternatively, you can install the plugin automatically through the WordPress Admin interface.
- Are there likely to false postives?
The default set of triggers have been chosen to be as ‘wide’ as possible, catching as many potential comment spammers as possible.
One side effect of this is that there may be some false positives. In trialling the plugin, I have encountered almost no false positives, but the possibility exists. It is therefore not recommended to redirect users immediately. The default warning message acknowledges that false positives are possible and asks the user’s indulgence in reading the comment policy.
To limit false positives, the comment warning (or redirection) will not trigger for terms that are in both the refering URL and in your page’s URL. If you have a post with dofollow in the URL and a visitor arrives from another site with dofollow in the URL, there is a decent chance that they are not a spammer.
Contributors & Developers
“Comment Warning” is open source software. The following people have contributed to this plugin.Contributors
- Added a count of comments left by the potential spammer (in the Log).
- Changed Powered by Comment Warning Link in default message to open in new tab rather than the current one.
- Added (WARNED) to the end of the comment author name in the Admin panel, so you can see if they’ve been warned.
- Added a message to new comment and moderation required emails (to admin), so you can see if they’ve been warned.
- Moved the Clear Log button from the Log page to the Settings page.
- Changed the default log order from Database record order to Date order.
- Changed the date order (in the log) to descending, so that the latest entries show first.
- Linked the IP address in the log to the Edit Comments page for that IP address, so you can see what comments they’ve left.
- Initial Release