WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Spam Karma 2 Blacklist Ban

Bans IP addresses that have been caught and blacklisted by Spam Karma more than 5 times.

Is this a permanent ban?

No. If you would look at your Spam Karma 2 admin screens, under "Blacklist", there is a section that instructs Spam Karma to remove blacklist entries added or last used more than x days ago with scores less than y. This is where you configure whether and which IPs are banned temporarily or permanently.

Is this fast?

We made this with speed foremost in mind. During plugin initialization, the plugin tells MySQL to create an table index of the SK2 Blacklist table. IP lookup therefore becomes insanely fast.

This plugin fires at the very first stage of the WordPress loading process, so the offender is banned there and no further WordPress processing takes place.

How do I ban offenders caught more than 5 or less than 5 times?

Two ways to do this:

  1. Define SPAM_KARMA_BLACKLIST_COUNT_TO_BAN in your wp_config.php, or edit the plugin directly.
  2. Create a filter to spam_karma_blacklist_ban_count in your theme's functions.php. For example,

    add_filter( 'spam_karma_blacklist_ban_count', 'my_ban_20_count' ); function my_ban_20_count( $count ) { return $count + 5 - 20; // Only ban IPs caught more than 20 times. }

How do I ban certain IPs permanently, or allow certain IPs permanently?

Create a filter to spam_karma_blacklist_ban_count in your theme's functions.php. For example,

add_filter( 'spam_karma_blacklist_ban_count', 'ban_Kevin' );
function ban_Kevin( $count ) {
    if ( is_this_kevin() )
        return SPAM_KARMA_BLACKLIST_COUNT_TO_BAN + 1; // ban him.
    return $count;
}

How do I know if this plugin is working?

A future version will have a reporting and testing screen.

Requires: 2.1 or higher
Compatible up to: 2.9.2
Last Updated: 2009-12-27
Active Installs: 200+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.