Bad Behavior - Version 2.2.7

Version Description

Download this release

Release Info

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

Code changes from version 2.2.6 to 2.2.7

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: 3.1
6
- Tested up to: 3.3.2
7
- Stable tag: 2.2.6
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, 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: 3.1
6
+ Tested up to: 3.4
7
+ Stable tag: 2.2.7
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-mediawiki.php CHANGED
@@ -151,10 +151,10 @@ function bb2_relative_path() {
151
  }
152
 
153
  // Cute timer display
154
- function bb2_mediawiki_timer(&$parser, &$text) {
155
  global $bb2_timer_total, $wgBadBehaviorTimer;
156
  if ($wgBadBehaviorTimer) {
157
- $text .= "<!-- Bad Behavior " . BB2_VERSION . " run time: " . number_format(1000 * $bb2_timer_total, 3) . " ms -->";
158
  }
159
  return true;
160
  }
@@ -190,5 +190,5 @@ $wgExtensionCredits['other'][] = array(
190
  'url' => 'http://bad-behavior.ioerror.us/'
191
  );
192
 
193
- $wgHooks['ParserAfterTidy'][] = 'bb2_mediawiki_timer';
194
  $wgExtensionFunctions[] = 'bb2_mediawiki_entry';
151
  }
152
 
153
  // Cute timer display
154
+ function bb2_mediawiki_timer(&$out, &$skin) {
155
  global $bb2_timer_total, $wgBadBehaviorTimer;
156
  if ($wgBadBehaviorTimer) {
157
+ $out->addHTML("<!-- Bad Behavior " . BB2_VERSION . " run time: " . number_format(1000 * $bb2_timer_total, 3) . " ms -->");
158
  }
159
  return true;
160
  }
190
  'url' => 'http://bad-behavior.ioerror.us/'
191
  );
192
 
193
+ $wgHooks['BeforePageDisplay'][] = 'bb2_mediawiki_timer';
194
  $wgExtensionFunctions[] = 'bb2_mediawiki_entry';
bad-behavior-wordpress.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
- Version: 2.2.6
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://bad-behavior.ioerror.us/
7
  Author: Michael Hampton
@@ -109,7 +109,7 @@ function bb2_read_settings() {
109
  // Add in default settings when they aren't yet present in WP
110
  $settings = get_option('bad_behavior_settings');
111
  if (!$settings) $settings = array();
112
- return array_merge(array('log_table' => $wpdb->prefix . 'bad_behavior', 'display_stats' => true, 'strict' => false, 'verbose' => false, 'logging' => true, 'httpbl_key' => '', 'httpbl_threat' => '25', 'httpbl_maxage' => '30', 'offsite_forms' => false, 'eu_cookie' => false, 'reverse_proxy' => false, 'reverse_proxy_header' => 'X-Forwarded-For', 'reverse_proxy_addresses' => array(),), $settings);
113
 
114
 
115
  }
1
  <?php
2
  /*
3
  Plugin Name: Bad Behavior
4
+ Version: 2.2.7
5
  Description: Deny automated spambots access to your PHP-based Web site.
6
  Plugin URI: http://bad-behavior.ioerror.us/
7
  Author: Michael Hampton
109
  // Add in default settings when they aren't yet present in WP
110
  $settings = get_option('bad_behavior_settings');
111
  if (!$settings) $settings = array();
112
+ return array_merge(array('log_table' => $wpdb->prefix . 'bad_behavior', 'display_stats' => false, 'strict' => false, 'verbose' => false, 'logging' => true, 'httpbl_key' => '', 'httpbl_threat' => '25', 'httpbl_maxage' => '30', 'offsite_forms' => false, 'eu_cookie' => false, 'reverse_proxy' => false, 'reverse_proxy_header' => 'X-Forwarded-For', 'reverse_proxy_addresses' => array(),), $settings);
113
 
114
 
115
  }
bad-behavior/blacklist.inc.php CHANGED
@@ -23,12 +23,12 @@ function bb2_blacklist($package) {
23
  "HttpProxy", // misc comment/email spam
24
  "Internet Explorer", // XMLRPC exploits seen
25
  "ISC Systems iRc", // spam harvester
26
- "Jakarta Commons", // custommised spambots
27
- "Java 1.", // definitely a spammer
28
- "Java/1.", // definitely a spammer
29
- "libwww-perl", // spambot scripts
30
- "LWP", // spambot scripts
31
- "Microsoft URL", // spam harvester
32
  "Missigua", // spam harvester
33
  "MJ12bot/v1.0.8", // malicious botnet
34
  "Movable Type", // customised spambots
@@ -40,6 +40,7 @@ function bb2_blacklist($package) {
40
  "NutchCVS", // unidentified robots
41
  "Nutscrape/", // misc comment spam
42
  "OmniExplorer", // spam harvester
 
43
  "psycheclone", // spam harvester
44
  "PussyCat ", // misc comment spam
45
  "PycURL", // misc comment spam
@@ -76,6 +77,7 @@ function bb2_blacklist($package) {
76
  ".NET CLR 1)", // free poker, etc.
77
  "POE-Component-Client", // free poker, etc.
78
  "Turing Machine", // www.anonymizer.com abuse
 
79
  "unspecified.mail", // stealth harvesters
80
  "User-agent: ", // spam harvester/splogger
81
  "WebaltBot", // spam harvester
23
  "HttpProxy", // misc comment/email spam
24
  "Internet Explorer", // XMLRPC exploits seen
25
  "ISC Systems iRc", // spam harvester
26
+ "Jakarta Commons", // customised spambots
27
+ "Java 1.", // unidentified robots
28
+ "Java/1.", // unidentified robots
29
+ "libwww-perl", // unidentified robots
30
+ "LWP", // unidentified robots
31
+ "Microsoft URL", // unidentified robots
32
  "Missigua", // spam harvester
33
  "MJ12bot/v1.0.8", // malicious botnet
34
  "Movable Type", // customised spambots
40
  "NutchCVS", // unidentified robots
41
  "Nutscrape/", // misc comment spam
42
  "OmniExplorer", // spam harvester
43
+ "Opera/9.64(", // comment spam bot
44
  "psycheclone", // spam harvester
45
  "PussyCat ", // misc comment spam
46
  "PycURL", // misc comment spam
77
  ".NET CLR 1)", // free poker, etc.
78
  "POE-Component-Client", // free poker, etc.
79
  "Turing Machine", // www.anonymizer.com abuse
80
+ "Ubuntu/9.25", // comment spam bot
81
  "unspecified.mail", // stealth harvesters
82
  "User-agent: ", // spam harvester/splogger
83
  "WebaltBot", // spam harvester
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.6");
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.7");
3
 
4
  // Bad Behavior entry point is bb2_start()
5
  // If you're reading this, you are probably lost.
bad-behavior/responses.inc.php CHANGED
@@ -37,8 +37,8 @@ function bb2_get_response($key) {
37
  'c1fa729b' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, run anti-virus and anti-spyware software and remove any viruses and spyware from your computer.', 'log' => 'Use of rotating proxy servers detected'),
38
  'cd361abb' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Data may not be posted from offsite forms.', 'log' => 'Referer did not point to a form on this site'),
39
  'd60b87c7' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, please remove any viruses or spyware from your computer.', 'log' => 'Trackback received via proxy server'),
40
- 'e3990b47' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, please remove any viruses or spyware from your computer.', 'log' => 'Obviously fake trackback received'),
41
  'dfd9b1ad' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Request contained a malicious JavaScript or SQL injection attack'),
 
42
  'e4de0453' => 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 msnbot, claim appears to be false'),
43
  'e87553e1' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'I know you and I don\'t like you, dirty spammer.'),
44
  'f0dcb3fd' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, run anti-virus and anti-spyware software and remove any viruses and spyware from your computer.', 'log' => 'Web browser attempted to send a trackback'),
37
  'c1fa729b' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, run anti-virus and anti-spyware software and remove any viruses and spyware from your computer.', 'log' => 'Use of rotating proxy servers detected'),
38
  'cd361abb' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Data may not be posted from offsite forms.', 'log' => 'Referer did not point to a form on this site'),
39
  'd60b87c7' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, please remove any viruses or spyware from your computer.', 'log' => 'Trackback received via proxy server'),
 
40
  'dfd9b1ad' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'Request contained a malicious JavaScript or SQL injection attack'),
41
+ 'e3990b47' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, please remove any viruses or spyware from your computer.', 'log' => 'Obviously fake trackback received'),
42
  'e4de0453' => 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 msnbot, claim appears to be false'),
43
  'e87553e1' => array('response' => 403, 'explanation' => 'You do not have permission to access this server.', 'log' => 'I know you and I don\'t like you, dirty spammer.'),
44
  'f0dcb3fd' => array('response' => 403, 'explanation' => 'You do not have permission to access this server. Before trying again, run anti-virus and anti-spyware software and remove any viruses and spyware from your computer.', 'log' => 'Web browser attempted to send a trackback'),