Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.83.2

Version Description

December 19 2017 = * Fix: Error in base class.

Download this release

Release Info

Developer Safronik
Plugin Icon 128x128 Spam protection, AntiSpam, FireWall by CleanTalk
Version 5.83.2
Comparing to
See all releases

Code changes from version 5.83.1 to 5.83.2

Files changed (3) hide show
  1. cleantalk.php +5 -5
  2. lib/CleantalkHelper.php +4 -4
  3. readme.txt +7 -1
cleantalk.php CHANGED
@@ -3,17 +3,17 @@
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms. Formerly Anti-Spam by CleanTalk.
6
- Version: 5.83.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
- $cleantalk_plugin_version='5.83.1';
12
- $ct_agent_version = 'wordpress-5831';
13
  $cleantalk_executed = false;
14
 
15
- define('APBCT_VERSION', '5.83.1');
16
- define('APBCT_AGENT', 'wordpress-5831');
17
 
18
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
19
 
3
  Plugin Name: Anti-Spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms. Formerly Anti-Spam by CleanTalk.
6
+ Version: 5.83.2
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
+ $cleantalk_plugin_version='5.83.2';
12
+ $ct_agent_version = 'wordpress-5832';
13
  $cleantalk_executed = false;
14
 
15
+ define('APBCT_VERSION', '5.83.2');
16
+ define('APBCT_AGENT', 'wordpress-5832');
17
 
18
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
19
 
lib/CleantalkHelper.php CHANGED
@@ -4,7 +4,7 @@ class CleantalkHelper
4
  {
5
  const URL = 'https://api.cleantalk.org';
6
 
7
- private $cdn_pool = array(
8
  'cloud_flare' => array(
9
  '103.21.244.0/22',
10
  '103.22.200.0/22',
@@ -56,7 +56,7 @@ class CleantalkHelper
56
 
57
  // Cloud Flare
58
  if(isset($headers['Cf_Connecting_Ip'])){
59
- foreach(self::cdn_pool['cloud_flare'] as $cidr){
60
  if($this->ip_mask_match($ips['remote_addr'], $cidr)){
61
  $ips['cloud_flare'] = $headers['Cf_Connecting_Ip'];
62
  break;
@@ -86,7 +86,7 @@ class CleantalkHelper
86
 
87
  // Cloud Flare
88
  if(isset($headers['Cf_Connecting_Ip'])){
89
- foreach(self::cdn_pool['cloud_flare'] as $cidr){
90
  if($this->ip_mask_match($ips['remote_addr'], $cidr)){
91
  $ip = $headers['Cf_Connecting_Ip'];
92
  break;
@@ -133,7 +133,7 @@ class CleantalkHelper
133
  {
134
  $headers = self::get_request_headers();
135
  if(isset($headers['Cf_Connecting_Ip'])){
136
- foreach(self::cdn_pool['cloud_flare'] as $cidr){
137
  if($this->ip_mask_match($_SERVER['remote_addr'], $cidr)){
138
  $ip = $headers['Cf_Connecting_Ip'];
139
  break;
4
  {
5
  const URL = 'https://api.cleantalk.org';
6
 
7
+ public static $cdn_pool = array(
8
  'cloud_flare' => array(
9
  '103.21.244.0/22',
10
  '103.22.200.0/22',
56
 
57
  // Cloud Flare
58
  if(isset($headers['Cf_Connecting_Ip'])){
59
+ foreach(self::$cdn_pool['cloud_flare'] as $cidr){
60
  if($this->ip_mask_match($ips['remote_addr'], $cidr)){
61
  $ips['cloud_flare'] = $headers['Cf_Connecting_Ip'];
62
  break;
86
 
87
  // Cloud Flare
88
  if(isset($headers['Cf_Connecting_Ip'])){
89
+ foreach(self::$cdn_pool['cloud_flare'] as $cidr){
90
  if($this->ip_mask_match($ips['remote_addr'], $cidr)){
91
  $ip = $headers['Cf_Connecting_Ip'];
92
  break;
133
  {
134
  $headers = self::get_request_headers();
135
  if(isset($headers['Cf_Connecting_Ip'])){
136
+ foreach(self::$cdn_pool['cloud_flare'] as $cidr){
137
  if($this->ip_mask_match($_SERVER['remote_addr'], $cidr)){
138
  $ip = $headers['Cf_Connecting_Ip'];
139
  break;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov, sartemd174
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 4.9.1
6
- Stable tag: 5.83.1
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
@@ -504,6 +504,9 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
504
  1. The plugin deletes/removes the existing spam comments and users accounts.
505
 
506
  == Changelog ==
 
 
 
507
  = 5.83.1 December 19 2017 =
508
  * Fix: CDN IP detection.
509
 
@@ -1481,6 +1484,9 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
1481
  * First version
1482
 
1483
  == Upgrade Notice ==
 
 
 
1484
  = 5.83.1 December 19 2017 =
1485
  * Fix: CDN IP detection.
1486
 
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 4.9.1
6
+ Stable tag: 5.83.2
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
504
  1. The plugin deletes/removes the existing spam comments and users accounts.
505
 
506
  == Changelog ==
507
+ = 5.83.2 December 19 2017 =
508
+ * Fix: Error in base class.
509
+
510
  = 5.83.1 December 19 2017 =
511
  * Fix: CDN IP detection.
512
 
1484
  * First version
1485
 
1486
  == Upgrade Notice ==
1487
+ = 5.83.2 December 19 2017 =
1488
+ * Fix: Error in base class.
1489
+
1490
  = 5.83.1 December 19 2017 =
1491
  * Fix: CDN IP detection.
1492