WPBruiser {no- Captcha anti-Spam} - Version 3.1.10

Version Description

  • Refreshed Incapsula, Amazon and Cloudflare trusted IPs ranges
Download this release

Release Info

Developer mihche
Plugin Icon 128x128 WPBruiser {no- Captcha anti-Spam}
Version 3.1.10
Comparing to
See all releases

Code changes from version 3.1.8 to 3.1.10

engine/modules/mc-for-wp/GdbcMailChimpForWpPublicModule.php CHANGED
@@ -26,7 +26,6 @@ class GdbcMailChimpForWpPublicModule extends GdbcBasePublicModule
26
 
27
  parent::__construct();
28
 
29
- //!GoodByeCaptchaUtils::isMailChimpForWPActivated() ||
30
  if(!$this->getOption(GdbcMailChimpForWpAdminModule::OPTION_MODULE_MAIL_CHIMP_FOR_WP))
31
  return;
32
 
@@ -37,9 +36,24 @@ class GdbcMailChimpForWpPublicModule extends GdbcBasePublicModule
37
 
38
 
39
  add_filter('mc4wp_valid_form_request', array($this, 'validateOldSubscriptionRequest'), 10, 2);
 
 
 
 
 
 
40
 
41
  }
42
 
 
 
 
 
 
 
 
 
 
43
  public function validateSubscriptionRequest($arrErrors, $mcForm)
44
  {
45
  if( ! is_object($mcForm) )
26
 
27
  parent::__construct();
28
 
 
29
  if(!$this->getOption(GdbcMailChimpForWpAdminModule::OPTION_MODULE_MAIL_CHIMP_FOR_WP))
30
  return;
31
 
36
 
37
 
38
  add_filter('mc4wp_valid_form_request', array($this, 'validateOldSubscriptionRequest'), 10, 2);
39
+
40
+
41
+ //MailChimp Top Bar
42
+ add_action('mctb_before_submit_button', array($this, 'renderTokenFieldIntoForm'));
43
+ add_filter('mctb_validate', array($this, 'validateMailChimpTopBarRequest'));
44
+
45
 
46
  }
47
 
48
+ public function validateMailChimpTopBarRequest($isValid)
49
+ {
50
+ $this->getAttemptEntity()->Notes = array('email' => (empty( $_POST['email'] ) || ! is_email( $_POST['email'] )) ? null : strtolower($_POST['email']));
51
+
52
+ $isValid = GdbcRequestController::isValid($this->getAttemptEntity());
53
+
54
+ return $isValid;
55
+ }
56
+
57
  public function validateSubscriptionRequest($arrErrors, $mcForm)
58
  {
59
  if( ! is_object($mcForm) )
goodbye-captcha.php CHANGED
@@ -10,7 +10,7 @@
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.8
14
  * Author: Mihai Chelaru
15
  * Author URI: http://www.wpbruiser.com
16
  * Text Domain: wp-bruiser
@@ -23,7 +23,7 @@ if(!class_exists('GoodByeCaptcha', false))
23
  {
24
  class GoodByeCaptcha
25
  {
26
- CONST PLUGIN_VERSION = '3.1.8';
27
  CONST PLUGIN_SLUG = 'wp-bruiser';
28
  CONST PLUGIN_NAME = 'WPBruiser';
29
  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.10
14
  * Author: Mihai Chelaru
15
  * Author URI: http://www.wpbruiser.com
16
  * Text Domain: wp-bruiser
23
  {
24
  class GoodByeCaptcha
25
  {
26
+ CONST PLUGIN_VERSION = '3.1.10';
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,221659008=>221659071,222034432=>222034495,225561344=>225561599,233063680=>233063935,583269376=>583269631,585240064=>585240319,597592064=>597592319,597835712=>597835775,598196096=>598196159,873430912=>873430975,875429888=>875446271,875872128=>875872191,876117760=>876117887,876215808=>876216063,876790400=>876790463,877590400=>877590463,877920256=>878051327,885489600=>885489663,886372352=>886372415,886882048=>886882111,886996992=>887029759,917897216=>917962751,918552576=>918618111,921042944=>921108479,921304960=>921305023,921665536=>921690111,921731072=>921747455,3438715904=>3438717951,3438718464=>3438723071,3455827968=>3455836159,3455842560=>3455844095,3632865280=>3632873471,))
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(221642752=>222035967,225443840=>225705983,226230272=>226492415,231800832=>231997439,233046016=>233832447,234487808=>234618879,314703872=>314966015,316145664=>316669951,317128704=>317194239,387186688=>387448831,583008256=>587202559,597295104=>599261183,775127040=>775147519,775149568=>775159807,780730368=>780795903,839909376=>840171519,846200832=>846266367,872415232=>875429887,875495424=>877330431,877395968=>877723647,877854720=>877920255,878051328=>878444543,878702592=>878706591,884998144=>885129215,885260288=>886571007,886833152=>886996991,910163968=>912261119,915406848=>917766143,917962752=>918552575,918618112=>920518655,920551424=>921042943,921174016=>921632767,921763840=>922746879,1137311744=>1137328127,1210851328=>1210859519,1264943104=>1264975871,1333592064=>1333624831,1618935808=>1618968575,1728317440=>1728319487,1796472832=>1796734975,2063122432=>2063138815,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
 
@@ -64,9 +64,9 @@ final class MchGdbcTrustedIPRanges
64
 
65
  return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
66
  ?
67
- self::isIPInRanges($ipAddress, $ipVersion, array(1076022784=>1076023039,1279981696=>1279981823,1279983360=>1279983487,3221241856=>3221258239,3333780480=>3333781503,))
68
  :
69
- self::isIPInRanges($ipAddress, $ipVersion, array('2620:115:c000::/40'=>1,));
70
 
71
  }
72
 
42
 
43
  return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
44
  ?
45
+ self::isIPInRanges($ipAddress, $ipVersion, array(220200960=>220332031,221659008=>221659071,222034432=>222034495,225561344=>225561599,226281216=>226281471,233063680=>233063935,583269376=>583269631,585240064=>585240319,585671632=>585671639,597592064=>597592319,597835712=>597835775,598196096=>598196159,873430912=>873430975,875429888=>875446271,875872128=>875872191,876117760=>876117887,876215808=>876216063,876790400=>876790463,877590400=>877590463,877920256=>878051327,885489600=>885489663,886372352=>886372415,886882048=>886882111,886996992=>887029759,917897216=>917962751,918552576=>918618111,921042944=>921108479,921304960=>921305023,921665536=>921690111,921731072=>921747455,3438715904=>3438717951,3438718464=>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(221511680=>221577215,221642752=>222035967,225443840=>225705983,226230272=>226492415,231800832=>231997439,233046016=>233832447,234487808=>234618879,311427072=>311558143,314703872=>314966015,315097088=>315162623,316145664=>316669951,317128704=>317194239,318570496=>318636031,387186688=>387448831,583008256=>587202559,597229568=>599261183,775127040=>775147519,775149568=>775159807,780730368=>780795903,839909376=>840171519,846200832=>846266367,872415232=>875429887,875495424=>877789183,877854720=>877920255,878051328=>878444543,878605312=>878606335,878702592=>878706591,880266496=>880266751,884998144=>885129215,885260288=>886571007,886833152=>886996991,910163968=>912261119,915406848=>917766143,917962752=>918552575,918618112=>920518655,920551424=>921042943,921174016=>921632767,921763840=>922746879,1137311744=>1137328127,1210851328=>1210859519,1264943104=>1264975871,1333592064=>1333624831,1618935808=>1618968575,1728317440=>1728319487,1796472832=>1796734975,2063122432=>2063138815,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
 
64
 
65
  return ( $ipVersion === MchGdbcIPUtils::IP_VERSION_4 )
66
  ?
67
+ self::isIPInRanges($ipAddress, $ipVersion, array(1076022784=>1076023039,1117481344=>1117481407,1163590912=>1163591167,1279981696=>1279981823,1279983360=>1279983487,3221241856=>3221258239,3333780480=>3333781503,))
68
  :
69
+ self::isIPInRanges($ipAddress, $ipVersion, array('2001:1978:1e00:3::/64'=>1,'2620:115:c000::/40'=>1,));
70
 
71
  }
72
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
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: 3.5
6
  Tested up to: 4.8
7
- Stable tag: 3.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -223,8 +223,8 @@ Studies shown that visual CAPTCHAs take around 5-10 seconds to complete and audi
223
  == Changelog ==
224
  * Added integration with [Ultra Community](https://wordpress.org/plugins/ultra-community/) Membership plugin
225
 
226
- = 3.1.7 =
227
- * Refreshed Incapsula, Amazon and Cloudflare trusted IPs ranges
228
 
229
  = 3.1.6 =
230
  **Improvements**
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: 3.5
6
  Tested up to: 4.8
7
+ Stable tag: 3.1.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
223
  == Changelog ==
224
  * Added integration with [Ultra Community](https://wordpress.org/plugins/ultra-community/) Membership plugin
225
 
226
+ = 3.1.9 =
227
+ * Added integration with [MailChimp Top Bar](https://wordpress.org/plugins/mailchimp-top-bar/)
228
 
229
  = 3.1.6 =
230
  **Improvements**