Linux 软件免费装

Plugin Name

开发者 Pinoy.ca
更新时间 2009年12月27日 13:42
捐献地址: 去捐款
PHP版本: 2.1 及以上
WordPress版本: 2.9

标签

blacklist ban spam-karma ip-ban

下载

1.0.1

详情介绍:

Once an IP address is knee-deep in Spam Karma's blacklist, Spam Karma will never approve a comment from this IP, no matter how often it tries. Unfortunately, many of these IPs don't stop trying, thus wasting your bandwidth and server resources. This small plugin bans them. Note: this is not a Spam Karma 2 plugin; that's different.

安装:

  1. Upload spam-karma-blacklist-ban.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

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.

更新日志:

1.0.1 1.0