This plugin has been deprecated! It is no longer necessary as its functionality has been integrated into WordPress. There will not be any continued support for it. Comments to this post are also now closed.
When I released the plugin, I also simultaneously made a bug report and patch for the WP core, which was quickly accepted and applied.
Prevent visitors from leaving duplicate comments/pingbacks/trackbacks to a post.
* Requires at least WordPress 1.5.
* A duplicate is a comment/pingback/trackback that meets these criteria:
Its contents match that of another comment in the same post
Either the commenter’s name or e-mail address (if provided) also match.
I won’t claim this approach won’t lead to false-positives, but as far as I’m concerned it’s reasonable.
* If a comment is deemed to be a duplicate, an error page is displayed to the user indicating as much.
- Download the file no-duplicate-comments.zip and unzip it into your /wp-content/plugins/ directory.
Copy and paste the the code ( no-duplicate-comments.phps ) into a file called no-duplicate-comments.php, and put that file into your /wp-content/plugins/ directory. Please ensure you do not introduce any spaces or other characters before the <?php or after the ?>
- Activate the plugin from your WordPress admin ‘Plugins’ page.
function c2c_no_duplicate_comments ( $comment_text )
- $comment_text : The text of the comment to be checked for duplication.
Copyright (c) 2005 by Scott Reilly (aka coffee2code)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.