Version Description
Download this release
Release Info
Developer | error |
Plugin | Bad Behavior |
Version | 2.0.35 |
Comparing to | |
See all releases |
Code changes from version 2.0.34 to 2.0.35
- README.txt +1 -1
- bad-behavior-wordpress-admin.php +0 -1
- bad-behavior-wordpress.php +1 -1
- bad-behavior/blackhole.inc.php +7 -0
- bad-behavior/blacklist.inc.php +1 -0
- bad-behavior/post.inc.php +2 -2
- bad-behavior/version.inc.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: error, MarkJaquith, Firas, 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¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
|
5 |
Requires at least: 1.2
|
6 |
Tested up to: 2.8.6
|
7 |
-
Stable tag: 2.0.
|
8 |
|
9 |
Welcome to a whole new way of keeping your blog, forum, guestbook, wiki or
|
10 |
content management system free of link spam. Bad Behavior is a PHP-based
|
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¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
|
5 |
Requires at least: 1.2
|
6 |
Tested up to: 2.8.6
|
7 |
+
Stable tag: 2.0.35
|
8 |
|
9 |
Welcome to a whole new way of keeping your blog, forum, guestbook, wiki or
|
10 |
content management system free of link spam. Bad Behavior is a PHP-based
|
bad-behavior-wordpress-admin.php
CHANGED
@@ -315,5 +315,4 @@ function bb2_plugin_action_links($links, $file) {
|
|
315 |
}
|
316 |
add_filter("plugin_action_links", "bb2_plugin_action_links", 10, 2);
|
317 |
|
318 |
-
|
319 |
?>
|
315 |
}
|
316 |
add_filter("plugin_action_links", "bb2_plugin_action_links", 10, 2);
|
317 |
|
|
|
318 |
?>
|
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.35
|
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/blackhole.inc.php
CHANGED
@@ -7,10 +7,14 @@ function is_ipv6($address) {
|
|
7 |
|
8 |
// Look up address on various blackhole lists.
|
9 |
// These should not be used for GET requests under any circumstances!
|
|
|
10 |
function bb2_blackhole($package) {
|
11 |
// Can't use IPv6 addresses yet
|
12 |
if (@is_ipv6($package['ip'])) return false;
|
13 |
|
|
|
|
|
|
|
14 |
// Only conservative lists
|
15 |
$bb2_blackhole_lists = array(
|
16 |
"sbl-xbl.spamhaus.org", // All around nasties
|
@@ -49,6 +53,9 @@ function bb2_httpbl($settings, $package) {
|
|
49 |
|
50 |
if (@!$settings['httpbl_key']) return false;
|
51 |
|
|
|
|
|
|
|
52 |
$find = implode('.', array_reverse(explode('.', $package['ip'])));
|
53 |
$result = gethostbynamel($settings['httpbl_key'].".${find}.dnsbl.httpbl.org.");
|
54 |
if (!empty($result)) {
|
7 |
|
8 |
// Look up address on various blackhole lists.
|
9 |
// These should not be used for GET requests under any circumstances!
|
10 |
+
// FIXME: Note that this code is no longer in use
|
11 |
function bb2_blackhole($package) {
|
12 |
// Can't use IPv6 addresses yet
|
13 |
if (@is_ipv6($package['ip'])) return false;
|
14 |
|
15 |
+
// Workaround for "MySQL server has gone away"
|
16 |
+
bb2_db_query("SET @@session.wait_timeout = 90");
|
17 |
+
|
18 |
// Only conservative lists
|
19 |
$bb2_blackhole_lists = array(
|
20 |
"sbl-xbl.spamhaus.org", // All around nasties
|
53 |
|
54 |
if (@!$settings['httpbl_key']) return false;
|
55 |
|
56 |
+
// Workaround for "MySQL server has gone away"
|
57 |
+
bb2_db_query("SET @@session.wait_timeout = 90");
|
58 |
+
|
59 |
$find = implode('.', array_reverse(explode('.', $package['ip'])));
|
60 |
$result = gethostbynamel($settings['httpbl_key'].".${find}.dnsbl.httpbl.org.");
|
61 |
if (!empty($result)) {
|
bad-behavior/blacklist.inc.php
CHANGED
@@ -32,6 +32,7 @@ function bb2_blacklist($package) {
|
|
32 |
"MJ12bot/v1.0.8", // malicious botnet
|
33 |
"Movable Type", // customised spambots
|
34 |
"Mozilla ", // malicious software
|
|
|
35 |
"Mozilla/4.0(", // from honeypot
|
36 |
"Mozilla/4.0+(", // suspicious harvester
|
37 |
"MSIE", // malicious software
|
32 |
"MJ12bot/v1.0.8", // malicious botnet
|
33 |
"Movable Type", // customised spambots
|
34 |
"Mozilla ", // malicious software
|
35 |
+
"Mozilla/2", // malicious software
|
36 |
"Mozilla/4.0(", // from honeypot
|
37 |
"Mozilla/4.0+(", // suspicious harvester
|
38 |
"MSIE", // malicious software
|
bad-behavior/post.inc.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
function bb2_post($settings, $package)
|
5 |
{
|
6 |
// Check blackhole lists for known spam/malicious activity
|
7 |
-
require_once(BB2_CORE . "/blackhole.inc.php");
|
8 |
-
bb2_test($settings, $package, bb2_blackhole($package));
|
9 |
|
10 |
// MovableType needs specialized screening
|
11 |
if (stripos($package['headers_mixed']['User-Agent'], "MovableType") !== FALSE) {
|
4 |
function bb2_post($settings, $package)
|
5 |
{
|
6 |
// Check blackhole lists for known spam/malicious activity
|
7 |
+
// require_once(BB2_CORE . "/blackhole.inc.php");
|
8 |
+
// bb2_test($settings, $package, bb2_blackhole($package));
|
9 |
|
10 |
// MovableType needs specialized screening
|
11 |
if (stripos($package['headers_mixed']['User-Agent'], "MovableType") !== FALSE) {
|
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.35");
|
3 |
?>
|