Version Description
Download this release
Release Info
Developer | error |
Plugin | Bad Behavior |
Version | 2.0.12 |
Comparing to | |
See all releases |
Code changes from version 2.0.11 to 2.0.12
- README.txt +2 -2
- bad-behavior-wordpress.php +1 -1
- bad-behavior/msie.inc.php +3 -2
- bad-behavior/version.inc.php +1 -1
- bad-behavior/whitelist.inc.php +2 -0
README.txt
CHANGED
@@ -3,8 +3,8 @@ Tags: comment,trackback,referrer,spam,robot,antispam
|
|
3 |
Contributors: error, MarkJaquith, Firas, skeltoac
|
4 |
Donate link: http://www.bad-behavior.ioerror.us/
|
5 |
Requires at least: 1.2
|
6 |
-
Tested up to: 2.3.
|
7 |
-
Stable tag: 2.0.
|
8 |
|
9 |
Bad Behavior is a set of PHP scripts which prevents spambots and other
|
10 |
malicious accesses to your PHP-based Web site. It prevents comment spam,
|
3 |
Contributors: error, MarkJaquith, Firas, skeltoac
|
4 |
Donate link: http://www.bad-behavior.ioerror.us/
|
5 |
Requires at least: 1.2
|
6 |
+
Tested up to: 2.3.2
|
7 |
+
Stable tag: 2.0.12
|
8 |
|
9 |
Bad Behavior is a set of PHP scripts which prevents spambots and other
|
10 |
malicious accesses to your PHP-based Web site. It prevents comment spam,
|
bad-behavior-wordpress.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Bad Behavior
|
4 |
-
Version: 2.0.
|
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.12
|
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/msie.inc.php
CHANGED
@@ -13,8 +13,9 @@ function bb2_msie($package)
|
|
13 |
return "a1084bad";
|
14 |
}
|
15 |
|
16 |
-
// MSIE does NOT send Connection: TE
|
17 |
-
|
|
|
18 |
return "2b90f772";
|
19 |
}
|
20 |
|
13 |
return "a1084bad";
|
14 |
}
|
15 |
|
16 |
+
// MSIE does NOT send Connection: TE but Akamai does
|
17 |
+
// Bypass this test when Akamai detected
|
18 |
+
if (!array_key_exists('Akamai-Origin-Hop', $package['headers_mixed']) && preg_match('/\bTE\b/i', $package['headers_mixed']['Connection'])) {
|
19 |
return "2b90f772";
|
20 |
}
|
21 |
|
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.
|
3 |
?>
|
1 |
<?php if (!defined('BB2_CWD')) die("I said no cheating!");
|
2 |
+
define('BB2_VERSION', "2.0.12");
|
3 |
?>
|
bad-behavior/whitelist.inc.php
CHANGED
@@ -12,6 +12,8 @@ function bb2_whitelist($package)
|
|
12 |
|
13 |
// Includes four examples of whitelisting by IP address and netblock.
|
14 |
$bb2_whitelist_ip_ranges = array(
|
|
|
|
|
15 |
"10.0.0.0/8",
|
16 |
"172.16.0.0/12",
|
17 |
"192.168.0.0/16",
|
12 |
|
13 |
// Includes four examples of whitelisting by IP address and netblock.
|
14 |
$bb2_whitelist_ip_ranges = array(
|
15 |
+
"64.191.203.34", // Digg whitelisted as of 2.0.12
|
16 |
+
"208.67.217.130", // Digg whitelisted as of 2.0.12
|
17 |
"10.0.0.0/8",
|
18 |
"172.16.0.0/12",
|
19 |
"192.168.0.0/16",
|