Bad Behavior - Version 2.2.16

Version Description

Download this release

Release Info

Developer error
Plugin Icon wp plugin Bad Behavior
Version 2.2.16
Comparing to
See all releases

Code changes from version 2.2.15 to 2.2.16

README.txt CHANGED
@@ -3,8 +3,8 @@ Tags: comment,trackback,referrer,spam,robot,antispam
3
  Contributors: error
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=error%40ioerror%2eus&item_name=Bad%20Behavior%20%28From%20WordPress%20Page%29&no_shipping=1&cn=Comments%20about%20Bad%20Behavior&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
5
  Requires at least: 3.1
6
- Tested up to: 4.0
7
- Stable tag: 2.2.15
8
 
9
  Bad Behavior prevents spammers from ever delivering their junk, and in many
10
  cases, from ever reading your site in the first place.
3
  Contributors: error
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=error%40ioerror%2eus&item_name=Bad%20Behavior%20%28From%20WordPress%20Page%29&no_shipping=1&cn=Comments%20about%20Bad%20Behavior&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
5
  Requires at least: 3.1
6
+ Tested up to: 4.0.1
7
+ Stable tag: 2.2.16
8
 
9
  Bad Behavior prevents spammers from ever delivering their junk, and in many
10
  cases, from ever reading your site in the first place.
bad-behavior-wordpress.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
- Version: 2.2.15
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://bad-behavior.ioerror.us/
7
  Author: Michael Hampton
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
+ Version: 2.2.16
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://bad-behavior.ioerror.us/
7
  Author: Michael Hampton
bad-behavior/common_tests.inc.php CHANGED
@@ -73,7 +73,8 @@ function bb2_misc_headers($settings, $package)
73
  // Lowercase via is used by open proxies/referrer spammers
74
  // Exceptions: Clearswift uses lowercase via (refuses to fix;
75
  // may be blocked again in the future)
76
- if (array_key_exists('via', $package['headers']) &&
 
77
  strpos($package['headers']['via'],'Clearswift') === FALSE &&
78
  strpos($ua,'CoralWebPrx') === FALSE) {
79
  return "9c9e4979";
73
  // Lowercase via is used by open proxies/referrer spammers
74
  // Exceptions: Clearswift uses lowercase via (refuses to fix;
75
  // may be blocked again in the future)
76
+ if ($settings['strict'] &&
77
+ array_key_exists('via', $package['headers']) &&
78
  strpos($package['headers']['via'],'Clearswift') === FALSE &&
79
  strpos($ua,'CoralWebPrx') === FALSE) {
80
  return "9c9e4979";
bad-behavior/core.inc.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php if (!defined('BB2_CWD')) die("I said no cheating!");
2
- define('BB2_VERSION', "2.2.15");
3
 
4
  // Bad Behavior entry point is bb2_start()
5
  // If you're reading this, you are probably lost.
1
  <?php if (!defined('BB2_CWD')) die("I said no cheating!");
2
+ define('BB2_VERSION', "2.2.16");
3
 
4
  // Bad Behavior entry point is bb2_start()
5
  // If you're reading this, you are probably lost.