Spam protection, AntiSpam, FireWall by CleanTalk - Version 4.10

Version Description

2014-12-10 = * Improved anti spam protection for custom contact/registration/subscribe forms. * Option 'Custom contact forms' enabled by default for new setups. * Removed settings "Publish relevant comments", "Use encrypted (SSL) connection". * Added translation to Danish (thank you for Mikkel at KreativJul.dk).

Download this release

Release Info

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

Code changes from version 4.9 to 4.10

cleantalk-admin.php CHANGED
@@ -109,8 +109,6 @@ function ct_admin_init() {
109
  add_settings_section('cleantalk_settings_main', __($ct_plugin_name, 'cleantalk'), 'ct_section_settings_main', 'cleantalk');
110
  add_settings_section('cleantalk_settings_anti_spam', __('Anti-spam settings', 'cleantalk'), 'ct_section_settings_anti_spam', 'cleantalk');
111
  add_settings_field('cleantalk_apikey', __('Access key', 'cleantalk'), 'ct_input_apikey', 'cleantalk', 'cleantalk_settings_main');
112
- add_settings_field('cleantalk_autoPubRevelantMess', __('Publish relevant comments', 'cleantalk'), 'ct_input_autoPubRevelantMess', 'cleantalk', 'cleantalk_settings_main');
113
- add_settings_field('cleantalk_ssl_on', __('Use secure (SSL) connection to CleanTalk cloud', 'cleantalk'), 'ct_radio_ssl_on', 'cleantalk', 'cleantalk_settings_main');
114
  add_settings_field('cleantalk_remove_old_spam', __('Automatically delete spam comments', 'cleantalk'), 'ct_input_remove_old_spam', 'cleantalk', 'cleantalk_settings_main');
115
 
116
  add_settings_field('cleantalk_registrations_test', __('Registration forms', 'cleantalk'), 'ct_input_registrations_test', 'cleantalk', 'cleantalk_settings_anti_spam');
@@ -133,35 +131,6 @@ function ct_section_settings_anti_spam() {
133
  return true;
134
  }
135
 
136
- /**
137
- * @author Artem Leontiev
138
- * Admin callback function - Displays inputs of 'Publicate relevant comments' plugin parameter
139
- *
140
- * @return null
141
- */
142
- function ct_input_autoPubRevelantMess () {
143
- global $ct_options;
144
-
145
- $value = $ct_options['autoPubRevelantMess'];
146
- echo "<input type='radio' id='cleantalk_autoPubRevelantMess1' name='cleantalk_settings[autoPubRevelantMess]' value='1' " . ($value == '1' ? 'checked' : '') . " /><label for='cleantalk_autoPubRevelantMess1'> " . __('Yes') . "</label>";
147
- echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
148
- echo "<input type='radio' id='cleantalk_autoPubRevelantMess0' name='cleantalk_settings[autoPubRevelantMess]' value='0' " . ($value == '0' ? 'checked' : '') . " /><label for='cleantalk_autoPubRevelantMess0'> " . __('No') . "</label>";
149
- admin_addDescriptionsFields(__('Relevant (not spam) comments from new authors will be automatic published at the blog', 'cleantalk'));
150
- }
151
- /**
152
- * Admin callback function - Display secure connection options
153
- *
154
- * @return null
155
- */
156
- function ct_radio_ssl_on() {
157
- global $ct_options;
158
-
159
- $value = $ct_options['ssl_on'];
160
- echo "<input type='radio' id='cleantalk_ssl_on1' name='cleantalk_settings[ssl_on]' value='1' " . ($value == '1' ? 'checked' : '') . " /><label for='cleantalk_ssl_on1'> " . __('Yes') . "</label>";
161
- echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
162
- echo "<input type='radio' id='cleantalk_ssl_on0' name='cleantalk_settings[ssl_on]' value='0' " . ($value == '0' ? 'checked' : '') . " /><label for='cleantalk_ssl_on0'> " . __('No') . "</label>";
163
- }
164
-
165
  /**
166
  * Admin callback function - Displays inputs of 'apikey' plugin parameter
167
  */
@@ -306,19 +275,19 @@ function admin_notice_message(){
306
 
307
  $show_notice = true;
308
  if ($show_notice && ct_valid_key($options['apikey']) === false) {
309
- echo '<div class="updated"><h3>' . __("Please enter the Access Key in <a href=\"options-general.php?page=cleantalk\">CleanTalk plugin</a> settings to enable protection from spam!", 'cleantalk') . '</h3></div>';
310
  $show_notice = false;
311
  }
312
 
313
  if ($show_notice && $show_ct_notice_trial) {
314
- echo '<div class="updated"><h3>' . __("<a href=\"options-general.php?page=cleantalk\">$ct_plugin_name</a> trial period ends, please upgrade to <a href=\"http://cleantalk.org/my/bill/recharge?utm_source=wp-backend&utm_medium=cpc&utm_campaign=WP%20backend%20trial$user_token\" target=\"_blank\"><b>premium version</b></a>!", 'cleantalk') . '</h3></div>';
315
  $show_notice = false;
316
  }
317
 
318
  if ($show_notice && $show_ct_notice_online != '') {
319
  echo '<div class="updated"><h3><b>';
320
  if($show_ct_notice_online === 'Y'){
321
- echo __("Please don’t forget to disable CAPTCHA if you have it!", 'cleantalk');
322
  }
323
 
324
  if($show_ct_notice_online === 'N'){
109
  add_settings_section('cleantalk_settings_main', __($ct_plugin_name, 'cleantalk'), 'ct_section_settings_main', 'cleantalk');
110
  add_settings_section('cleantalk_settings_anti_spam', __('Anti-spam settings', 'cleantalk'), 'ct_section_settings_anti_spam', 'cleantalk');
111
  add_settings_field('cleantalk_apikey', __('Access key', 'cleantalk'), 'ct_input_apikey', 'cleantalk', 'cleantalk_settings_main');
 
 
112
  add_settings_field('cleantalk_remove_old_spam', __('Automatically delete spam comments', 'cleantalk'), 'ct_input_remove_old_spam', 'cleantalk', 'cleantalk_settings_main');
113
 
114
  add_settings_field('cleantalk_registrations_test', __('Registration forms', 'cleantalk'), 'ct_input_registrations_test', 'cleantalk', 'cleantalk_settings_anti_spam');
131
  return true;
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  /**
135
  * Admin callback function - Displays inputs of 'apikey' plugin parameter
136
  */
275
 
276
  $show_notice = true;
277
  if ($show_notice && ct_valid_key($options['apikey']) === false) {
278
+ echo '<div class="updated"><h3>' . sprintf(__("Please enter Access Key in %s settings to enable anti spam protection!", 'cleantalk'), "<a href=\"options-general.php?page=cleantalk\">CleanTalk plugin</a>") . '</h3></div>';
279
  $show_notice = false;
280
  }
281
 
282
  if ($show_notice && $show_ct_notice_trial) {
283
+ echo '<div class="updated"><h3>' . sprintf(__("%s trial period ends, please upgrade to %s!", 'cleantalk'), "<a href=\"options-general.php?page=cleantalk\">$ct_plugin_name</a>", "<a href=\"http://cleantalk.org/my/bill/recharge?utm_source=wp-backend&utm_medium=cpc&utm_campaign=WP%20backend%20trial$user_token\" target=\"_blank\"><b>premium version</b></a>") . '</h3></div>';
284
  $show_notice = false;
285
  }
286
 
287
  if ($show_notice && $show_ct_notice_online != '') {
288
  echo '<div class="updated"><h3><b>';
289
  if($show_ct_notice_online === 'Y'){
290
+ echo __("Don’t forget to disable CAPTCHA if you have it!", 'cleantalk');
291
  }
292
 
293
  if($show_ct_notice_online === 'N'){
cleantalk.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Anti-spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
6
- Version: 4.9
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
12
 
13
- $ct_agent_version = 'wordpress-49';
14
  $ct_plugin_name = 'Anti-spam by CleanTalk';
15
  $ct_checkjs_frm = 'ct_checkjs_frm';
16
  $ct_checkjs_register_form = 'ct_checkjs_register_form';
@@ -292,7 +292,7 @@ function ct_def_options() {
292
  'registrations_test' => '1',
293
  'comments_test' => '1',
294
  'contact_forms_test' => '1',
295
- 'general_contact_forms_test' => '0', // Antispam test for unsupported and untested contact forms
296
  'remove_old_spam' => '0',
297
  'spam_store_days' => '15', // Days before delete comments from folder Spam
298
  'ssl_on' => 0, // Secure connection to servers
@@ -538,7 +538,7 @@ function ct_comment_form($post_id) {
538
  */
539
  function ct_footer_add_cookie() {
540
  if (ct_is_user_enable() === false) {
541
- return false;
542
  }
543
 
544
  ct_add_hidden_fields(true, 'ct_checkjs', false, true);
@@ -1613,7 +1613,7 @@ function ct_comment_text($comment_text) {
1613
  $ct_hash = get_comment_meta($comment->comment_ID, 'ct_hash', true);
1614
 
1615
  if ($ct_hash !== '' && $_COOKIE[$ct_approved_request_id_label] == $ct_hash) {
1616
- $comment_text .= '<br /><br /> <em class="comment-awaiting-moderation">' . __('Comment is approved. Anti-spam by CleanTalk.', 'cleantalk') . '</em>';
1617
  }
1618
  }
1619
 
@@ -1818,7 +1818,7 @@ function ct_contact_form_validate () {
1818
  $subject = $v;
1819
  }
1820
 
1821
- if (!$contact_form && preg_match("/(contact|form|feedback)/", $k) && !preg_match("/^ct_checkjs/", $k)) {
1822
  $contact_form = true;
1823
  }
1824
  }
3
  Plugin Name: Anti-spam by CleanTalk
4
  Plugin URI: http://cleantalk.org
5
  Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
6
+ Version: 4.10
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
 
11
  define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
12
 
13
+ $ct_agent_version = 'wordpress-410';
14
  $ct_plugin_name = 'Anti-spam by CleanTalk';
15
  $ct_checkjs_frm = 'ct_checkjs_frm';
16
  $ct_checkjs_register_form = 'ct_checkjs_register_form';
292
  'registrations_test' => '1',
293
  'comments_test' => '1',
294
  'contact_forms_test' => '1',
295
+ 'general_contact_forms_test' => '1', // Antispam test for unsupported and untested contact forms
296
  'remove_old_spam' => '0',
297
  'spam_store_days' => '15', // Days before delete comments from folder Spam
298
  'ssl_on' => 0, // Secure connection to servers
538
  */
539
  function ct_footer_add_cookie() {
540
  if (ct_is_user_enable() === false) {
541
+ # return false;
542
  }
543
 
544
  ct_add_hidden_fields(true, 'ct_checkjs', false, true);
1613
  $ct_hash = get_comment_meta($comment->comment_ID, 'ct_hash', true);
1614
 
1615
  if ($ct_hash !== '' && $_COOKIE[$ct_approved_request_id_label] == $ct_hash) {
1616
+ $comment_text .= '<br /><br /> <em class="comment-awaiting-moderation">' . __('Comment approved. Anti-spam by CleanTalk.', 'cleantalk') . '</em>';
1617
  }
1618
  }
1619
 
1818
  $subject = $v;
1819
  }
1820
 
1821
+ if (!$contact_form && preg_match("/(contact|form|feedback|subscribe|action)/", $k) && !preg_match("/^ct_checkjs/", $k)) {
1822
  $contact_form = true;
1823
  }
1824
  }
i18n/cleantalk-da_DK.mo ADDED
Binary file
i18n/cleantalk-ru_RU.mo CHANGED
Binary file
i18n/cleantalk.pot ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012 CleanTalk
2
+ # This file is distributed under the same license as the Cleantalk. Spam protection package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Cleantalk. Spam protection \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/cleantalk\n"
7
+ "POT-Creation-Date: 2014-03-12 08:04:56+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-03-12 08:04:56+00:00\n"
12
+ "Last-Translator: Denis Shagimuratov <shagimuratov@cleantalk.org>\n"
13
+ "Language-Team: CleanTalk Team <welcome@cleantalk.org>\n"
14
+
15
+ msgid "Cleantalk settings"
16
+ msgstr ""
17
+
18
+ msgid "Main settings"
19
+ msgstr ""
20
+
21
+ msgid "Access key"
22
+ msgstr ""
23
+
24
+ msgid "Spam protection"
25
+ msgstr ""
26
+
27
+ msgid "Click here to get access key"
28
+ msgstr ""
29
+
30
+ #. Notice if key is empty
31
+ msgid "Please enter Access Key in %s settings to enable anti spam protection!"
32
+ msgstr ""
33
+
34
+ #. Publish options
35
+ msgid "Publish relevant comments"
36
+ msgstr ""
37
+
38
+ #. Publish descrtipion
39
+ msgid "Relevant (not spam) comments from new authors will be automatic published at the blog"
40
+ msgstr ""
41
+
42
+ msgid "Automatically delete spam comments"
43
+ msgstr ""
44
+
45
+ msgid "Delete spam comments older than %d days."
46
+ msgstr ""
47
+
48
+ msgid "Anti-spam settings"
49
+ msgstr ""
50
+
51
+ msgid "Registration forms"
52
+ msgstr ""
53
+
54
+ msgid "Comments form"
55
+ msgstr ""
56
+
57
+ msgid "Contact forms"
58
+ msgstr ""
59
+
60
+ msgid "Plugin Homepage at"
61
+ msgstr ""
62
+
63
+ msgid "Comment approved. Anti-spam by CleanTalk."
64
+ msgstr ""
65
+
66
+ msgid "%s trial period ends, please upgrade to %s!"
67
+ msgstr ""
68
+
69
+ msgid "Don’t forget to disable CAPTCHA if you have it!"
70
+ msgstr ""
71
+
72
+ msgid "Registration is approved by %s."
73
+ msgstr ""
74
+
75
+ msgid "Attention, please!"
76
+ msgstr ""
77
+
78
+ msgid "\"Anti-spam by CleanTalk\" plugin error on your site %s:"
79
+ msgstr ""
80
+
81
+ msgid "[%s] Anti-spam by CleanTalk error!"
82
+ msgstr ""
83
+
84
+ msgid "Use secure (SSL) connection to CleanTalk cloud"
85
+ msgstr ""
86
+
87
+ msgid "Custom contact forms"
88
+ msgstr ""
89
+
90
+ msgid "Anti spam test for any WordPress or themes contacts forms"
91
+ msgstr ""
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Anti-spam by CleanTalk (no CAPTCHA) ===
2
  Contributors: znaeff, shagimuratov
3
- Tags: antispam, anti-spam, anti spam, spam, spammers, captcha, comments, registration, contact form, blacklist, math, signup, formidable, bot, spam bots, spammy, s2member, wordpress, support, BuddyPress, bbpress, landing pages, fast secure contact form, WooCommerce, jetpack, cf7, akismet, capcha, form
4
  Requires at least: 3.0
5
- Tested up to: 4.0.1
6
- Stable tag: 4.9
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -31,7 +31,7 @@ Spam is one of the most irritating factors. Spam become every year more and conv
31
  = Anti spam plugin info =
32
  CleanTalk is an anti spam protection **4 in 1 for WordPress** that protects login, comment, contact and WooCommerce forms all at once. You don't need to install separate anti spam plugins for each form. This allows your blog to work faster and save resources. After installation **you will forget about spam**, CleanTalk plugin will do all the work. You won't have to deal with spam, CleanTalk will do this for you automatically.
33
 
34
- CleanTalk is a transparent anti spam protection, we provide detailed statistics of all entering comments and logins. You can always be sure that **there are no errors**. We have developed a mobile app for you to see anti spam statistics wherever whenever.
35
 
36
  We have developed antispam for WordPress that would provide **maximum protection from spam bots** and you can provide for your visitors **a simple and convenient form of comments/registrations without annoying CAPTCHAs and puzzles**. Used to detect spam multistage test that allows us to block up to 100% of spam bots.
37
 
@@ -145,6 +145,7 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
145
 
146
  = Translations =
147
  * Spain (es_ES) - thanks to Andrew Kurtis and <a href="http://www.webhostinghub.com/index-c.html">WebHostingHub</a>
 
148
  * Russian (ru_RU)
149
 
150
  == Screenshots ==
@@ -155,6 +156,12 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
155
  1. Setup Android/iOS app to have push notices when new legitiamte comments/registrations or contactcs appears on the website.
156
 
157
  == Changelog ==
 
 
 
 
 
 
158
  = 4.9 2014-11-24 =
159
  * Fixed anti spam test for Contact Form 7.
160
 
@@ -440,6 +447,9 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
440
  * First version
441
 
442
  == Upgrade Notice ==
 
 
 
443
  = 4.9 2014-11-24 =
444
  Minor bug fix for Contact form 7.
445
 
1
  === Anti-spam by CleanTalk (no CAPTCHA) ===
2
  Contributors: znaeff, shagimuratov
3
+ Tags: Akismet, anti spam, antispam, bbpress spam, buddypress spam, capcha, captcha antispam, cf7 spam, comments spam, contact form spam, fast secure contact form spam, form, Formidable spam, jetpack spam, landing pages, math, registration spam, s2member, signup, signup spam, spam, spammers, spammy, WooCommerce spam, wordpress spam
4
  Requires at least: 3.0
5
+ Tested up to: 4.1
6
+ Stable tag: 4.10
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
31
  = Anti spam plugin info =
32
  CleanTalk is an anti spam protection **4 in 1 for WordPress** that protects login, comment, contact and WooCommerce forms all at once. You don't need to install separate anti spam plugins for each form. This allows your blog to work faster and save resources. After installation **you will forget about spam**, CleanTalk plugin will do all the work. You won't have to deal with spam, CleanTalk will do this for you automatically.
33
 
34
+ CleanTalk is a transparent anti spam protection, we provide detailed statistics of all entering comments and logins. You can always be sure that **there are no errors**. We have developed a mobile app for you to see anti spam statistics wherever.
35
 
36
  We have developed antispam for WordPress that would provide **maximum protection from spam bots** and you can provide for your visitors **a simple and convenient form of comments/registrations without annoying CAPTCHAs and puzzles**. Used to detect spam multistage test that allows us to block up to 100% of spam bots.
37
 
145
 
146
  = Translations =
147
  * Spain (es_ES) - thanks to Andrew Kurtis and <a href="http://www.webhostinghub.com/index-c.html">WebHostingHub</a>
148
+ * Danish (da_DK)
149
  * Russian (ru_RU)
150
 
151
  == Screenshots ==
156
  1. Setup Android/iOS app to have push notices when new legitiamte comments/registrations or contactcs appears on the website.
157
 
158
  == Changelog ==
159
+ = 4.10 2014-12-10 =
160
+ * Improved anti spam protection for custom contact/registration/subscribe forms.
161
+ * Option 'Custom contact forms' enabled by default for new setups.
162
+ * Removed settings "Publish relevant comments", "Use encrypted (SSL) connection".
163
+ * Added translation to Danish (thank you for Mikkel at KreativJul.dk).
164
+
165
  = 4.9 2014-11-24 =
166
  * Fixed anti spam test for Contact Form 7.
167
 
447
  * First version
448
 
449
  == Upgrade Notice ==
450
+ = 4.10 2014-12-10 =
451
+ Minor improvements for custom contact/registration/subscribe forms.
452
+
453
  = 4.9 2014-11-24 =
454
  Minor bug fix for Contact form 7.
455
 
screenshot-1.png CHANGED
Binary file