Bad Behavior - Version 2.0.43

Version Description

Download this release

Release Info

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

Code changes from version 2.0.42 to 2.0.43

README.txt CHANGED
@@ -3,8 +3,8 @@ Tags: comment,trackback,referrer,spam,robot,antispam
3
  Contributors: error, markjaquith, skeltoac
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: 2.7
6
- Tested up to: 3.1.0
7
- Stable tag: 2.0.42
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.
@@ -15,6 +15,10 @@ Welcome to a whole new way of keeping your blog, forum, guestbook, wiki or
15
  content management system free of link spam. Bad Behavior is a PHP-based
16
  solution for blocking link spam and the robots which deliver it.
17
 
 
 
 
 
18
  Bad Behavior complements other link spam solutions by acting as a gatekeeper,
19
  preventing spammers from ever delivering their junk, and in many cases, from
20
  ever reading your site in the first place. This keeps your site's load down,
@@ -40,9 +44,12 @@ Installing and configuring Bad Behavior on most platforms is simple and takes
40
  only a few minutes. In most cases, no configuration at all is needed. Simply
41
  turn it on and stop worrying about spam!
42
 
43
- The core of Bad Behavior is free software released under the GNU Lesser General
44
- Public License. (On some non-free platforms, special license terms exist for
45
- Bad Behavior's platform connector.)
 
 
 
46
 
47
  == Installation ==
48
 
@@ -67,7 +74,7 @@ the following:
67
  include( './extensions/Bad-Behavior/bad-behavior-mediawiki.php' );
68
 
69
  For complete documentation and installation instructions, please visit
70
- http://www.bad-behavior.ioerror.us/
71
 
72
  == Screenshots ==
73
 
@@ -76,6 +83,10 @@ winds up here, a way out is provided. This may involve removing malicious
76
  software from the user's computer, changing firewall settings or other simple
77
  fixes which will immediately grant access again.
78
 
 
 
 
 
79
  == Release Notes ==
80
 
81
  = Bad Behavior 2.0 Known Issues =
3
  Contributors: error, markjaquith, skeltoac
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: 2.7
6
+ Tested up to: 3.1.1
7
+ Stable tag: 2.0.43
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.
15
  content management system free of link spam. Bad Behavior is a PHP-based
16
  solution for blocking link spam and the robots which deliver it.
17
 
18
+ Thousands of sites, large and small, like SourceForge, GNOME, the U.S.
19
+ Department of Education, and many more, trust Bad Behavior to help reduce
20
+ incoming link spam and malicious activity.
21
+
22
  Bad Behavior complements other link spam solutions by acting as a gatekeeper,
23
  preventing spammers from ever delivering their junk, and in many cases, from
24
  ever reading your site in the first place. This keeps your site's load down,
44
  only a few minutes. In most cases, no configuration at all is needed. Simply
45
  turn it on and stop worrying about spam!
46
 
47
+ The core of Bad Behavior is free software released under the GNU General
48
+ Public License, version 2, or at your option, any later version. (On some
49
+ non-free platforms, special license terms exist for Bad Behavior's platform
50
+ connector.) The development version of Bad Behavior is free software released
51
+ under the GNU Lesser General Public License, version 3, or at your option,
52
+ any later version.
53
 
54
  == Installation ==
55
 
74
  include( './extensions/Bad-Behavior/bad-behavior-mediawiki.php' );
75
 
76
  For complete documentation and installation instructions, please visit
77
+ http://bad-behavior.ioerror.us/
78
 
79
  == Screenshots ==
80
 
83
  software from the user's computer, changing firewall settings or other simple
84
  fixes which will immediately grant access again.
85
 
86
+ 2. Bad Behavior's built in log viewer (WordPress) shows why requests were
87
+ blocked and allows you to click on any IP address, user-agent string or
88
+ block reason to filter results.
89
+
90
  == Release Notes ==
91
 
92
  = Bad Behavior 2.0 Known Issues =
bad-behavior-wordpress.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
- Version: 2.0.42
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://www.bad-behavior.ioerror.us/
7
  Author: Michael Hampton
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
+ Version: 2.0.43
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://www.bad-behavior.ioerror.us/
7
  Author: Michael Hampton
bad-behavior/google.inc.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  function bb2_google($package)
6
  {
7
- if (match_cidr($package['ip'], "66.249.64.0/19") === FALSE && match_cidr($package['ip'], "64.233.160.0/19") === FALSE && match_cidr($package['ip'], "72.14.192.0/18") === FALSE) {
8
  return "f1182195";
9
  }
10
  return false;
4
 
5
  function bb2_google($package)
6
  {
7
+ if (match_cidr($package['ip'], "66.249.64.0/19") === FALSE && match_cidr($package['ip'], "64.233.160.0/19") === FALSE && match_cidr($package['ip'], "72.14.192.0/18") === FALSE && match_cidr($package['ip'], "203.208.32.0/19") === FALSE) {
8
  return "f1182195";
9
  }
10
  return false;
bad-behavior/responses.inc.php CHANGED
@@ -19,6 +19,7 @@ function bb2_get_response($key) {
19
  '582ec5e4' => array('response' => 400, 'explanation' => 'An invalid request was received. If you are using a proxy server, bypass the proxy server or contact your proxy server administrator. This may also be caused by a bug in the Opera web browser.', 'log' => '"Header \'TE\' present but TE not specified in \'Connection\' header'),
20
  '69920ee5' => array('response' => 400, 'explanation' => 'An invalid request was received from your browser. This may be caused by a malfunctioning proxy server or browser privacy software.', 'log' => 'Header \'Referer\' present but blank'),
21
  '6c502ff1' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Bot not fully compliant with RFC 2965'),
 
22
  '799165c2' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Rotating user-agents detected'),
23
  '7a06532b' => array('response' => 400, 'explanation' => 'An invalid request was received from your browser. This may be caused by a malfunctioning proxy server or browser privacy software.', 'log' => 'Required header \'Accept-Encoding\' missing'),
24
  '7ad04a8a' => array('response' => 400, 'explanation' => 'The automated program you are using is not permitted to access this server. Please use a different program or a standard Web browser.', 'log' => 'Prohibited header \'Range\' present'),
19
  '582ec5e4' => array('response' => 400, 'explanation' => 'An invalid request was received. If you are using a proxy server, bypass the proxy server or contact your proxy server administrator. This may also be caused by a bug in the Opera web browser.', 'log' => '"Header \'TE\' present but TE not specified in \'Connection\' header'),
20
  '69920ee5' => array('response' => 400, 'explanation' => 'An invalid request was received from your browser. This may be caused by a malfunctioning proxy server or browser privacy software.', 'log' => 'Header \'Referer\' present but blank'),
21
  '6c502ff1' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Bot not fully compliant with RFC 2965'),
22
+ '71436a15' => array('response' => 403, 'explanation' => 'An invalid request was received. You claimed to be a major search engine, but you do not appear to actually be a major search engine.', 'log' => 'User-Agent claimed to be Yahoo, claim appears to be false'),
23
  '799165c2' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Rotating user-agents detected'),
24
  '7a06532b' => array('response' => 400, 'explanation' => 'An invalid request was received from your browser. This may be caused by a malfunctioning proxy server or browser privacy software.', 'log' => 'Required header \'Accept-Encoding\' missing'),
25
  '7ad04a8a' => array('response' => 400, 'explanation' => 'The automated program you are using is not permitted to access this server. Please use a different program or a standard Web browser.', 'log' => 'Prohibited header \'Range\' present'),
bad-behavior/version.inc.php CHANGED
@@ -1,3 +1,3 @@
1
  <?php if (!defined('BB2_CWD')) die("I said no cheating!");
2
- define('BB2_VERSION', "2.0.42");
3
  ?>
1
  <?php if (!defined('BB2_CWD')) die("I said no cheating!");
2
+ define('BB2_VERSION', "2.0.43");
3
  ?>