Link Limits
Link Limits is a WordPress plugin that places some restrictions on the number of hyperlinks that your users can include in their comments. It is rare for legitimate comments to include hyperlinks, and those that do almost never include more than two at most. However, a very high proportion of spam comments exceed these limits, and BBCode should raise red warning flags all over the place, because most WordPress blogs don’t use it. If you’re not sure what BBCode is, it’s where you get comments with links that look like this:
[url=http://www.example.com/]An example hyperlink[/url]
Link Limits rejects comments outright if they contain more than two hyperlinks, or if they contain any hyperlinks at all in BBCode format. This should make it easier to manage your spam queue and check it for false positives. It also displays a short note on your comment form advising your visitors that you have these restrictions in place.
If you have Three Strikes and You’re Out installed, Link Limits also notifies it of failed attempts to post comments with excessive hyperlinks.
Installation and configuration
Download the archive and unzip the file link-limits.php into your /wp-content/plugins directory.
If you want to change the number of hyperlinks that you allow in comments, edit the file to change number in the line that says
define ('MAX_HYPERLINKS', 2);
If you don’t want to allow hyperlinks at all, set it to zero. If you want to allow unlimited hyperlinks and just check for BBCode, comment this line out.
Requirements
Link Limits has been tested on WordPress 2.1.2 and 2.2. It is expected to work on all versions of WordPress >= 2.0, and may also work on version 1.5, although if so, this is more by accident than by design.
If you run into problems, I’ve written a blog entry on how to report problems with WordPress plugins. Please read it and do what it says before shouting at me!
Download
7 trackbacks:
-
11 Jul 2007 14:05: WP Plugins DB » Plugin Details » Link Limits
[…] Visit […]
-
9 Aug 2007 00:48: Otra alternativa contra el spam « felipEx | trucos, howto, scripts y más
[…] desde hace días comenzé a notar la gran diferencia contra el spam, desde que instalé el Plugin Link Limits el spam ha desaparecido […]
-
19 Aug 2007 20:33: Webrocker » Eat this, Kommentarspam
[…] beiden neuen, Link Limits und Comment Timeout achten darauf, was in die Kommentarfelder eingegeben […]
-
8 Oct 2007 19:35: Combatir el Spam en WordPress
[…] Link Limits: Este plugin es muy simple, elimina directamente cualquier mensaje que tenga más de X enlaces en el comentario y a su prohíbe el uso de BBCode (muy utilizado por los spammers). […]
-
20 Oct 2007 04:18: Words into Ideas » Blog Archive » SPAAAAAAAAAAAAAAAAMMMM!!!
[…] fans can check out the plugins here and here. Let’s hope I don’t have to deal with triple-digit spam queues […]
-
18 Nov 2007 20:40: Mis plugins de Wordpress v2
[…] Link Limit: Todos los comentarios que contengan 3 o más URL’s o BBCode serán automáticamente eliminados. […]
-
10 Apr 2008 20:13: Thirteen Favorite WP Plugins | Random Amusements
[…] Instead of showing the cut-off of a post, it shows the full-feed, no matter what. 4. Link Limits You can control how many links are listed in a comment before it’s flagged as spam. It also […]

RSS feed


20:36
Hi
it’s very useful!
i’ve come here just for report a bug hehe
if someone write “www.google.com” the script doesn’t detect as link properly
Cheers, felipe.
18:03
Would this work with WP 2.5.1?
19:16
Yes, it should do.