Version Description
Improvements - Refreshed Country IPs - Refreshed WebAttackers IPs - Refreshed Proxy IPs - Compatibility with WordPress 5.1
Download this release
Release Info
Developer | mihche |
Plugin | WPBruiser {no- Captcha anti-Spam} |
Version | 3.1.26 |
Comparing to | |
See all releases |
Code changes from version 3.1.25 to 3.1.26
- engine/GdbcBruteGuardian.php +12 -4
- goodbye-captcha.php +4 -2
- includes/vendor/MchHttp/MchGdbcTrustedIPRanges.php +2 -2
- readme.txt +10 -3
engine/GdbcBruteGuardian.php
CHANGED
@@ -17,8 +17,6 @@
|
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
18 |
*/
|
19 |
|
20 |
-
|
21 |
-
|
22 |
final class GdbcBruteGuardian
|
23 |
{
|
24 |
|
@@ -28,8 +26,6 @@ final class GdbcBruteGuardian
|
|
28 |
'index.html' => '',
|
29 |
);
|
30 |
|
31 |
-
|
32 |
-
|
33 |
private static $SITE_UNDER_ATTACK_FLAG = 'wpbr-uad'; //under-attack-detected
|
34 |
private static $SITE_ATTACK_WARNING_FLAG = 'wpbr-sid'; //suspicious-ips-detected
|
35 |
|
@@ -148,6 +144,14 @@ final class GdbcBruteGuardian
|
|
148 |
if(false !== $cacheDirectoryPath)
|
149 |
return $cacheDirectoryPath;
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
$cacheDirectoryPath = MchGdbcWpUtils::getDirectoryPathForCache();
|
152 |
if(null === $cacheDirectoryPath)
|
153 |
return null;
|
@@ -157,6 +161,7 @@ final class GdbcBruteGuardian
|
|
157 |
return $cacheDirectoryPath = null;
|
158 |
}
|
159 |
|
|
|
160 |
|
161 |
return $cacheDirectoryPath;
|
162 |
}
|
@@ -181,6 +186,9 @@ final class GdbcBruteGuardian
|
|
181 |
|
182 |
GdbcDbAccessController::registerAttempt( $attemptEntity );
|
183 |
|
|
|
|
|
|
|
184 |
|
185 |
}
|
186 |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
18 |
*/
|
19 |
|
|
|
|
|
20 |
final class GdbcBruteGuardian
|
21 |
{
|
22 |
|
26 |
'index.html' => '',
|
27 |
);
|
28 |
|
|
|
|
|
29 |
private static $SITE_UNDER_ATTACK_FLAG = 'wpbr-uad'; //under-attack-detected
|
30 |
private static $SITE_ATTACK_WARNING_FLAG = 'wpbr-sid'; //suspicious-ips-detected
|
31 |
|
144 |
if(false !== $cacheDirectoryPath)
|
145 |
return $cacheDirectoryPath;
|
146 |
|
147 |
+
// $cacheDirectoryPath = GdbcSettingsPublicModule::getInstance()->getOption(GdbcSettingsAdminModule::OPTION_CACHE_DIR_PATH);
|
148 |
+
// if(!empty($cacheDirectoryPath)){
|
149 |
+
// $cacheDirectoryPath .= DIRECTORY_SEPARATOR . GoodByeCaptcha::PLUGIN_SLUG . DIRECTORY_SEPARATOR . get_current_blog_id();
|
150 |
+
// if(MchGdbcWpUtils::isDirectoryUsable($cacheDirectoryPath, true)){
|
151 |
+
// return $cacheDirectoryPath;
|
152 |
+
// }
|
153 |
+
// }
|
154 |
+
|
155 |
$cacheDirectoryPath = MchGdbcWpUtils::getDirectoryPathForCache();
|
156 |
if(null === $cacheDirectoryPath)
|
157 |
return null;
|
161 |
return $cacheDirectoryPath = null;
|
162 |
}
|
163 |
|
164 |
+
// GdbcSettingsAdminModule::getInstance()->saveOption(GdbcSettingsAdminModule::OPTION_CACHE_DIR_PATH, MchGdbcWpUtils::getDirectoryPathForCache());
|
165 |
|
166 |
return $cacheDirectoryPath;
|
167 |
}
|
186 |
|
187 |
GdbcDbAccessController::registerAttempt( $attemptEntity );
|
188 |
|
189 |
+
// if(self::isSiteUnderAttack() && GoodByeCaptchaUtils::isLoginAttemptEntity($attemptEntity) && ( !GdbcIPUtils::isClientIpWhiteListed() )){
|
190 |
+
// self::registerClientIpBruteForceRequest();
|
191 |
+
// }
|
192 |
|
193 |
}
|
194 |
|
goodbye-captcha.php
CHANGED
@@ -10,18 +10,20 @@
|
|
10 |
* Plugin Name: WPBruiser
|
11 |
* Plugin URI: http://www.wpbruiser.com
|
12 |
* Description: An extremely powerful anti-spam plugin that blocks spambots without annoying captcha images.
|
13 |
-
* Version: 3.1.
|
14 |
* Author: Mihai Chelaru
|
15 |
* Author URI: http://www.wpbruiser.com
|
16 |
* Text Domain: wp-bruiser
|
17 |
* Domain Path: /languages
|
18 |
*/
|
19 |
|
|
|
|
|
20 |
if(!class_exists('GoodByeCaptcha', false))
|
21 |
{
|
22 |
class GoodByeCaptcha
|
23 |
{
|
24 |
-
CONST PLUGIN_VERSION = '3.1.
|
25 |
CONST PLUGIN_SLUG = 'wp-bruiser';
|
26 |
CONST PLUGIN_NAME = 'WPBruiser';
|
27 |
CONST PLUGIN_SITE_URL = 'http://www.wpbruiser.com';
|
10 |
* Plugin Name: WPBruiser
|
11 |
* Plugin URI: http://www.wpbruiser.com
|
12 |
* Description: An extremely powerful anti-spam plugin that blocks spambots without annoying captcha images.
|
13 |
+
* Version: 3.1.26
|
14 |
* Author: Mihai Chelaru
|
15 |
* Author URI: http://www.wpbruiser.com
|
16 |
* Text Domain: wp-bruiser
|
17 |
* Domain Path: /languages
|
18 |
*/
|
19 |
|
20 |
+
|
21 |
+
|
22 |
if(!class_exists('GoodByeCaptcha', false))
|
23 |
{
|
24 |
class GoodByeCaptcha
|
25 |
{
|
26 |
+
CONST PLUGIN_VERSION = '3.1.26';
|
27 |
CONST PLUGIN_SLUG = 'wp-bruiser';
|
28 |
CONST PLUGIN_NAME = 'WPBruiser';
|
29 |
CONST PLUGIN_SITE_URL = 'http://www.wpbruiser.com';
|
includes/vendor/MchHttp/MchGdbcTrustedIPRanges.php
CHANGED
@@ -42,7 +42,7 @@ final class MchGdbcTrustedIPRanges
|
|
42 |
|
43 |
return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
|
44 |
?
|
45 |
-
self::isIPInRanges($ipAddress, $ipVersion, array(220200960=>220332031,220397568=>220463103,221659008=>221659071,222034432=>222034495,225561344=>225561599,226281216=>226281471,231883648=>231883711,233063680=>233063935,234422272=>234487807,316189312=>316189439,583269376=>583269631,584594176=>584594303,585240064=>585240319,585671632=>585671639,597592064=>597592319,597835712=>597835775,598196096=>598196159,873430912=>873430975,875429888=>875446271,875531008=>875531263,875872128=>875872191,876117760=>876117887,876215808=>876216063,876790400=>876790463,877590400=>877590463,877920256=>878051327,880574464=>880607231,885489600=>885489663,886372352=>886372415,886882048=>886882111,886996992=>887029759,917897216=>917962751,918552576=>918618111,921042944=>921108479,921304960=>921305023,921665536=>921690111,921731072=>921747455,1090273280=>
|
46 |
:
|
47 |
self::isIPInRanges($ipAddress, $ipVersion, array());
|
48 |
|
@@ -53,7 +53,7 @@ final class MchGdbcTrustedIPRanges
|
|
53 |
|
54 |
return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
|
55 |
?
|
56 |
-
self::isIPInRanges($ipAddress, $ipVersion, array(50331648=>50462719,50855936=>51118079,51380224=>51642367,
|
57 |
:
|
58 |
self::isIPInRanges($ipAddress, $ipVersion, array());
|
59 |
|
42 |
|
43 |
return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
|
44 |
?
|
45 |
+
self::isIPInRanges($ipAddress, $ipVersion, array(220200960=>220332031,220397568=>220463103,221659008=>221659071,222034432=>222034495,225561344=>225561599,226281216=>226281471,231883648=>231883711,232783872=>233046015,233063680=>233063935,234422272=>234487807,316189312=>316189439,583269376=>583269631,584594176=>584594303,585043168=>585043199,585240064=>585240319,585671632=>585671639,597592064=>597592319,597835712=>597835775,598196096=>598196159,873430912=>873430975,875429888=>875446271,875531008=>875531263,875872128=>875872191,876117760=>876117887,876215808=>876216063,876790400=>876790463,877590400=>877590463,877821952=>877830143,877920256=>878051327,880574464=>880607231,885489600=>885489663,886372352=>886372415,886882048=>886882111,886996992=>887029759,917897216=>917962751,918552576=>918618111,921042944=>921108479,921304960=>921305023,921665536=>921690111,921731072=>921747455,1090273280=>1090306047,1183055872=>1183072255,1201143808=>1201176575,1666449408=>1666514943,1666580480=>1666646015,2412511232=>2412576767,3438715904=>3438723071,3455827968=>3455836159,3455842560=>3455844095,3632865280=>3632873471,))
|
46 |
:
|
47 |
self::isIPInRanges($ipAddress, $ipVersion, array());
|
48 |
|
53 |
|
54 |
return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
|
55 |
?
|
56 |
+
self::isIPInRanges($ipAddress, $ipVersion, array(50331648=>50462719,50855936=>51118079,51380224=>51642367,55574528=>56623103,57147392=>57409535,57671680=>57933823,58195968=>58720255,63963136=>66060287,221249536=>221380607,221511680=>222035967,225443840=>225705983,226230272=>226492415,231735296=>231997439,233046016=>233832447,234487808=>234618879,262406144=>262537215,263258112=>263274495,310509568=>310575103,310902784=>310968319,311033856=>311164927,311427072=>311558143,312016896=>312082431,313458688=>313524223,313720832=>313786367,313917440=>313982975,314048512=>314179583,314310656=>314376191,314507264=>314572799,314703872=>314966015,315097088=>317063167,317128704=>317587455,318111744=>318177279,318570496=>318636031,387186688=>387448831,583008256=>587202559,597229568=>599261183,775127040=>775147519,775149568=>775159807,780730368=>780795903,839909376=>840171519,846200832=>846266367,872415232=>875429887,875475968=>875478015,875495424=>877821951,877834240=>877836287,877854720=>877920255,878051328=>878444543,878605312=>878606335,878639104=>878639343,878639360=>878639407,878639424=>878639503,878698752=>878699007,878699264=>878699775,878702336=>878706591,880266496=>880266751,884998144=>886571007,886833152=>886996991,910163968=>912261119,915406848=>917897215,917962752=>918552575,918618112=>920518655,920526848=>920528895,920551424=>921042943,921174016=>921632767,921763840=>922746879,1059061760=>1059323903,1137311744=>1137328127,1210851328=>1210859519,1264943104=>1264975871,1333592064=>1333624831,1618935808=>1618968575,1666121728=>1666318335,1679032320=>1679818751,1728317440=>1728319487,1796472832=>1796734975,1820327936=>1820852223,2063122432=>2063138815,2360541184=>2360606719,2645491712=>2645557247,2684420096=>2684485631,2731927552=>2731927807,2734353408=>2734353663,2927689728=>2927755263,2938732544=>2938765311,2954903552=>2954911743,2955018240=>2955083775,2974253056=>2974285823,3091726336=>3091857407,3098116096=>3098148863,3106961408=>3106962431,3438051328=>3438084095,3635863552=>3635867647,))
|
57 |
:
|
58 |
self::isIPInRanges($ipAddress, $ipVersion, array());
|
59 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mihche
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XVC3TSGEJQP2U
|
4 |
Tags: captcha, antispam, anti-spam, spam, mailpoet, antispambot, brute force, comment spam, jetpack contact form, contact form 7, ninja forms, formidable forms, wp bruiser
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -221,7 +221,14 @@ Studies shown that visual CAPTCHAs take around 5-10 seconds to complete and audi
|
|
221 |
* Refreshed Incapsula, Amazon and Cloudflare trusted IPs ranges
|
222 |
|
223 |
== Changelog ==
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
|
226 |
= 3.1.22 =
|
227 |
* Fixed compatibility with version 2.x of [Ultra Community - User Profile & Membership Plugin](https://demo.ultracommunity.com/)
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XVC3TSGEJQP2U
|
4 |
Tags: captcha, antispam, anti-spam, spam, mailpoet, antispambot, brute force, comment spam, jetpack contact form, contact form 7, ninja forms, formidable forms, wp bruiser
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.1
|
7 |
+
Stable tag: 3.1.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
221 |
* Refreshed Incapsula, Amazon and Cloudflare trusted IPs ranges
|
222 |
|
223 |
== Changelog ==
|
224 |
+
|
225 |
+
= 3.1.26 =
|
226 |
+
**Improvements**
|
227 |
+
- Refreshed Country IPs
|
228 |
+
- Refreshed WebAttackers IPs
|
229 |
+
- Refreshed Proxy IPs
|
230 |
+
- Compatibility with WordPress 5.1
|
231 |
+
|
232 |
|
233 |
= 3.1.22 =
|
234 |
* Fixed compatibility with version 2.x of [Ultra Community - User Profile & Membership Plugin](https://demo.ultracommunity.com/)
|