Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.95

Version Description

May 2 2018 = * Spam filtration improved. * Fix: Public widget layout. * Fix: Connection reports output. * Minor fixes.

Download this release

Release Info

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

Code changes from version 5.94 to 5.95

cleantalk.php CHANGED
@@ -3,15 +3,15 @@
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.
6
- Version: 5.94
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  $cleantalk_executed = false;
12
 
13
- define('APBCT_VERSION', '5.94');
14
- define('APBCT_AGENT', 'wordpress-594');
15
 
16
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
17
  define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
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.
6
+ Version: 5.95
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  $cleantalk_executed = false;
12
 
13
+ define('APBCT_VERSION', '5.95');
14
+ define('APBCT_AGENT', 'wordpress-595');
15
 
16
  define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
17
  define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
inc/cleantalk-admin.php CHANGED
@@ -200,7 +200,8 @@ function apbct_enqueue_scripts($hook) {
200
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
201
  wp_localize_script( 'jquery', 'ctSettingsPage', array(
202
  'ct_ajax_nonce' => $ajax_nonce,
203
- // 'ct_subtitle' => $ct_data['ip_license'] != 'all' ? __('Hosting AntiSpam', 'cleantalk') : '',
 
204
  ));
205
  }
206
 
@@ -953,7 +954,7 @@ function ct_report_builder() {
953
  _e('There are no failed connections to CleanTalk servers.', 'cleantalk');
954
  }else{
955
 
956
- echo "<table id='negative_reports_table'>
957
  <tr>
958
  <td>#</td>
959
  <td><b>Date</b></td>
@@ -1061,10 +1062,10 @@ function ct_input_apikey() {
1061
  if (function_exists('curl_init') && function_exists('json_decode')){
1062
  echo '<br /><br />';
1063
  echo "<a target='__blank' style='' href='https://cleantalk.org/register?platform=wordpress&email=".urlencode(ct_get_admin_email())."&website=".urlencode(parse_url(get_option('siteurl'),PHP_URL_HOST))."'><input type='button' class='cleantalk_auto_link' value='".__('Get access key manually', 'cleantalk')."' /></a>";
1064
- // if($ct_data['ip_license'] != 'all'){
1065
  echo "&nbsp;" . __("or") . "&nbsp;";
1066
  echo '<input name="get_apikey_auto" type="submit" class="cleantalk_manual_link" value="' . __('Get access key automatically', 'cleantalk') . '" />';
1067
- // }
1068
  echo '<input id="ct_admin_timezone" name="ct_admin_timezone" type="hidden" value="null" />';
1069
  echo "<br />";
1070
  echo "<br />";
200
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
201
  wp_localize_script( 'jquery', 'ctSettingsPage', array(
202
  'ct_ajax_nonce' => $ajax_nonce,
203
+ 'ct_subtitle' => $ct_data['ip_license'] != 0 ? __('Hosting AntiSpam', 'cleantalk') : '',
204
+ 'ip_license' => $ct_data['ip_license'] != 0 ? true : false,
205
  ));
206
  }
207
 
954
  _e('There are no failed connections to CleanTalk servers.', 'cleantalk');
955
  }else{
956
 
957
+ echo "<table id='negative_reports_table' style='display: none;'>
958
  <tr>
959
  <td>#</td>
960
  <td><b>Date</b></td>
1062
  if (function_exists('curl_init') && function_exists('json_decode')){
1063
  echo '<br /><br />';
1064
  echo "<a target='__blank' style='' href='https://cleantalk.org/register?platform=wordpress&email=".urlencode(ct_get_admin_email())."&website=".urlencode(parse_url(get_option('siteurl'),PHP_URL_HOST))."'><input type='button' class='cleantalk_auto_link' value='".__('Get access key manually', 'cleantalk')."' /></a>";
1065
+ if($ct_data['ip_license'] != 0){
1066
  echo "&nbsp;" . __("or") . "&nbsp;";
1067
  echo '<input name="get_apikey_auto" type="submit" class="cleantalk_manual_link" value="' . __('Get access key automatically', 'cleantalk') . '" />';
1068
+ }
1069
  echo '<input id="ct_admin_timezone" name="ct_admin_timezone" type="hidden" value="null" />';
1070
  echo "<br />";
1071
  echo "<br />";
inc/cleantalk-public.php CHANGED
@@ -2013,7 +2013,8 @@ function ct_contact_form_validate() {
2013
  (isset($_POST['woocommerce-login-nonce'], $_POST['login'], $_POST['password'], $_POST['_wp_http_referer'])) || //WooCommerce login form
2014
  (isset($_POST['ccf_form']) && intval($_POST['ccf_form']) == 1) ||
2015
  (isset($_POST['contact_tags']) && strpos($_POST['contact_tags'], 'MBR:') !== false) ||
2016
- (strpos($_SERVER['REQUEST_URI'], 'bizuno.php') && !empty($_POST['bizPass']))
 
2017
  ) {
2018
  return null;
2019
  }
2013
  (isset($_POST['woocommerce-login-nonce'], $_POST['login'], $_POST['password'], $_POST['_wp_http_referer'])) || //WooCommerce login form
2014
  (isset($_POST['ccf_form']) && intval($_POST['ccf_form']) == 1) ||
2015
  (isset($_POST['contact_tags']) && strpos($_POST['contact_tags'], 'MBR:') !== false) ||
2016
+ (strpos($_SERVER['REQUEST_URI'], 'bizuno.php') && !empty($_POST['bizPass'])) ||
2017
+ (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'],'my-dashboard/') !== false) // ticket_id=7885
2018
  ) {
2019
  return null;
2020
  }
inc/cleantalk-widget.php CHANGED
@@ -37,6 +37,10 @@ class cleantalk_widget extends WP_Widget
37
  $a_style = 'cursor: pointer; display: block; padding: 5px 0 5px; text-align: center; text-decoration: none; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; font-weight: normal; height: 100%; width: 100%; ';
38
  $strong_style = 'display: block; font-size: 15px; line-height: 16px; padding: 0 13px; white-space: nowrap; ';
39
 
 
 
 
 
40
  switch($instance['style']){
41
  case 'cleantalk':
42
  $a_style .= 'background: #3090C7; background-image: -moz-linear-gradient(0% 100% 90deg,#2060a7,#3090C7); background-image: -webkit-gradient(linear,0% 0,0% 100%,from(#3090C7),to(#2060A7)); border: 1px solid #33eeee; color: #AFCA63;';
37
  $a_style = 'cursor: pointer; display: block; padding: 5px 0 5px; text-align: center; text-decoration: none; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; font-weight: normal; height: 100%; width: 100%; ';
38
  $strong_style = 'display: block; font-size: 15px; line-height: 16px; padding: 0 13px; white-space: nowrap; ';
39
 
40
+ if(!isset($instance['style'])){
41
+ $instance['style'] = 'cleantalk';
42
+ }
43
+
44
  switch($instance['style']){
45
  case 'cleantalk':
46
  $a_style .= 'background: #3090C7; background-image: -moz-linear-gradient(0% 100% 90deg,#2060a7,#3090C7); background-image: -webkit-gradient(linear,0% 0,0% 100%,from(#3090C7),to(#2060A7)); border: 1px solid #33eeee; color: #AFCA63;';
js/cleantalk-admin-settings-page.js CHANGED
@@ -18,9 +18,9 @@ jQuery(document).ready(function(){
18
  }
19
  });
20
 
21
- if(cleantalk_good_key)
22
  {
23
- if(cleantalk_testing_failed !== true)
24
  jQuery('.form-table').first().find('tr').hide();
25
 
26
  banner_html="<div id='ct_stats_banner'>"+cleantalk_blocked_message;
18
  }
19
  });
20
 
21
+ if(cleantalk_good_key || ctSettingsPage.ip_license)
22
  {
23
+ if(cleantalk_testing_failed !== true || ctSettingsPage.ip_license)
24
  jQuery('.form-table').first().find('tr').hide();
25
 
26
  banner_html="<div id='ct_stats_banner'>"+cleantalk_blocked_message;
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Spam protection, AntiSpam, FireWall, Cleaner by CleanTalk ===
2
- Contributors: znaeff, shagimuratov, sartemd174
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 4.9.5
6
- Stable tag: 5.94
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.
@@ -26,9 +26,7 @@ No CAPTCHA, no questions, no animal counting, no puzzles, no math and no spam bo
26
  1. Stops spam in WooCommerce.
27
  1. Checks and removes the existing spam comments and spam users.
28
  1. Compatible with mobile users and devices.
29
-
30
- = Free trial then $8 per year =
31
- CleanTalk is a free anti spam plugin which work with the premium Cloud AntiSpam service cleantalk.org. This plugin as a service https://en.wikipedia.org/wiki/Software_as_a_service.
32
 
33
  = Public reviews =
34
  > Using CleanTalk on WPLift was a great test as we receive huge amounts of spam.
@@ -40,6 +38,9 @@ CleanTalk is a free anti spam plugin which work with the premium Cloud AntiSpam
40
  > The key selling point of CleanTalk for me is not simply its effectiveness. It's the fact that CleanTalk works in the background. It does not make users jump through hoops in order to submit a comment or complete a form.
41
  > <a href="https://www.kevinmuldoon.com/cleantalk-anti-spam-service/">www.kevinmuldoon.com</a>
42
 
 
 
 
43
  = AntiSpam protection for comments =
44
  Native spam protection for WordPress, JetPack comments and any other comment plugins. The plugin moves spam comments to SPAM folder or you can set the option to ban spam comments silently. You can also enable the option in the plugin settings to auto-delete comments from SPAM folder.
45
 
@@ -200,29 +201,21 @@ CleanTalk has an advanced option "Spam FireWall". This option allows you to bloc
200
 
201
  "CleanTalk team has been developing a cloud spam protection system for five years and has created a truly reliable anti-spam service designed for you to guarantee your safety".
202
 
203
- = Auto-Update CleanTalk Anti-Spam =
204
 
205
- CleanTalk Dashboard(<a href="https://cleantalk.org/my?cp_mode=antispam">https://cleantalk.org/my?cp_mode=antispam</a>) allows you to set auto-update plugin and select several websites and update the plugin at once on all sites by one click or you can setup auto-update for all websites or separate websites.
206
 
207
  Note: there is 24 hours delay before auto-update will do. This delay allows needing to avoid any issues. All updates that made through CleanTalk Dashboard manually will do immediately.
208
 
209
- Auto-updating system will work from CleanTalk Anti-Spam version 5.88
210
 
211
  = Translations =
212
- * Danish (da_DK)
213
- * French (fr_FR) - thanks to Gilles Santacreu <a href="http://net-ik.net">http://net-ik.net</a>
214
- * German (de_DE)
215
- * Italian (it_IT)
216
- * Polish (pl_PL)
217
- * Portuguese (pt_PT)
218
- * Spanish (es_ES) - thanks to Andrew Kurtis and <a href="http://www.webhostinghub.com/index-c.html">WebHostingHub</a>
219
- * Russian (ru_RU)
220
 
221
  = Requirements =
222
- WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enabled 'allow_url_fopen' setting. <a href="http://cleantalk.org/register?platform=wordpress">Sign up</a> to get an Access key. The plugin is fully compatible with PHP 7.
223
-
224
- = We recommend =
225
- * <a href="https://wordpress.org/plugins/security-malware-firewall/">Security & Firewall plugin by CleanTalk</a>
226
 
227
  > Max power, all-in-one, premium anti-spam WordPress plugin. No comments & registrations spam, no contact spam, protects any forms. Just install and forget spam.
228
 
@@ -506,6 +499,10 @@ https://cleantalk.org/faq#feedback_spam
506
  = Is the plugin fast? =
507
  We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade response time in backend or frontend. The plugin proccess only POST requests to WordPress core, it tackes less than 1 second to return results.
508
 
 
 
 
 
509
  == Screenshots ==
510
  1. AntiSpam settings are easy to use.
511
  2. AntiSpam plugin rejected a spam bot at the CAPTCHA less registration form. The plugin provides explanation to visitor and websites about each rejected comment/registration or contact message.
@@ -519,6 +516,12 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
519
  10. Website's options.
520
 
521
  == Changelog ==
 
 
 
 
 
 
522
  = 5.94 April 23 2018 =
523
  * Mod: Async load option for JS.
524
  * Mod: JS scripts loading is conditional.
@@ -1580,6 +1583,12 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
1580
  * First version
1581
 
1582
  == Upgrade Notice ==
 
 
 
 
 
 
1583
  = 5.94 April 23 2018 =
1584
  * Mod: Async load option for JS.
1585
  * Mod: JS scripts loading is conditional.
1
  === Spam protection, AntiSpam, FireWall, Cleaner by CleanTalk ===
2
+ Contributors: safronik
3
  Tags: spam, antispam, protection, comments, firewall
4
  Requires at least: 3.0
5
  Tested up to: 4.9.5
6
+ Stable tag: 5.95
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.
26
  1. Stops spam in WooCommerce.
27
  1. Checks and removes the existing spam comments and spam users.
28
  1. Compatible with mobile users and devices.
29
+ 1. Compatible with General Data Protection Regulation (GDPR) (EU).
 
 
30
 
31
  = Public reviews =
32
  > Using CleanTalk on WPLift was a great test as we receive huge amounts of spam.
38
  > The key selling point of CleanTalk for me is not simply its effectiveness. It's the fact that CleanTalk works in the background. It does not make users jump through hoops in order to submit a comment or complete a form.
39
  > <a href="https://www.kevinmuldoon.com/cleantalk-anti-spam-service/">www.kevinmuldoon.com</a>
40
 
41
+ = Free trial then $8 per year =
42
+ CleanTalk is a free anti spam plugin which work with the premium Cloud AntiSpam service cleantalk.org. This plugin as a service https://en.wikipedia.org/wiki/Software_as_a_service.
43
+
44
  = AntiSpam protection for comments =
45
  Native spam protection for WordPress, JetPack comments and any other comment plugins. The plugin moves spam comments to SPAM folder or you can set the option to ban spam comments silently. You can also enable the option in the plugin settings to auto-delete comments from SPAM folder.
46
 
201
 
202
  "CleanTalk team has been developing a cloud spam protection system for five years and has created a truly reliable anti-spam service designed for you to guarantee your safety".
203
 
204
+ = Auto-Update CleanTalk AntiSpam =
205
 
206
+ CleanTalk Dashboard allows you to set auto-update plugin and select several websites and update the plugin at once on all sites by one click or you can setup auto-update for all websites or separate websites.
207
 
208
  Note: there is 24 hours delay before auto-update will do. This delay allows needing to avoid any issues. All updates that made through CleanTalk Dashboard manually will do immediately.
209
 
210
+ Auto-updating system will work from CleanTalk AntiSpam version 5.88
211
 
212
  = Translations =
213
+ * Albanian (sq_AL) - thanks to fjalaime https://wordpress.org/support/users/fjalaime/
214
+ * French (fr_FR) - thanks to Gilles Santacreu http://net-ik.net
215
+ * Spanish (es_ES) - thanks to Andrew Kurtis and WebHostingHub
 
 
 
 
 
216
 
217
  = Requirements =
218
+ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enabled 'allow_url_fopen' setting. The plugin is fully compatible with PHP 7.
 
 
 
219
 
220
  > Max power, all-in-one, premium anti-spam WordPress plugin. No comments & registrations spam, no contact spam, protects any forms. Just install and forget spam.
221
 
499
  = Is the plugin fast? =
500
  We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade response time in backend or frontend. The plugin proccess only POST requests to WordPress core, it tackes less than 1 second to return results.
501
 
502
+ = Is the plugin EU GDPR compatible? =
503
+ Yes, it is. Please read this article,
504
+ <a href="https://cleantalk.org/help/CleanTalk-GDPR-Compliance">https://cleantalk.org/help/CleanTalk-GDPR-Compliance</a>
505
+
506
  == Screenshots ==
507
  1. AntiSpam settings are easy to use.
508
  2. AntiSpam plugin rejected a spam bot at the CAPTCHA less registration form. The plugin provides explanation to visitor and websites about each rejected comment/registration or contact message.
516
  10. Website's options.
517
 
518
  == Changelog ==
519
+ = 5.95 May 2 2018 =
520
+ * Spam filtration improved.
521
+ * Fix: Public widget layout.
522
+ * Fix: Connection reports output.
523
+ * Minor fixes.
524
+
525
  = 5.94 April 23 2018 =
526
  * Mod: Async load option for JS.
527
  * Mod: JS scripts loading is conditional.
1583
  * First version
1584
 
1585
  == Upgrade Notice ==
1586
+ = 5.95 May 2 2018 =
1587
+ * Spam filtration improved.
1588
+ * Fix: Public widget layout.
1589
+ * Fix: Connection reports output.
1590
+ * Minor fixes.
1591
+
1592
  = 5.94 April 23 2018 =
1593
  * Mod: Async load option for JS.
1594
  * Mod: JS scripts loading is conditional.