WP Armour – Honeypot Anti Spam - Version 1.7

Version Description

  • Fixed Hide Notification issue.
  • Tested with 5.7.
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 WP Armour – Honeypot Anti Spam
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

includes/views/wpa_extended_version.php CHANGED
@@ -7,6 +7,14 @@
7
  <div class="why_extended">
8
  <h3>Extra Tools that WP Armour Extended offers to make WP Armour more powerfull.</h3>
9
  <ul>
 
 
 
 
 
 
 
 
10
  <li><label>Record Spammer IP</label>
11
  Record spammers' IPs to block them from future submissions.
12
  </li>
7
  <div class="why_extended">
8
  <h3>Extra Tools that WP Armour Extended offers to make WP Armour more powerfull.</h3>
9
  <ul>
10
+ <li><label>Additional Support</label>
11
+ * WooCommerce & Easy Digital Downloads <br/>
12
+ * QuForm<br/>
13
+ * MC4WP: Mailchimp for WordPress<br/>
14
+ * S2 Member<br/>
15
+ * Gravity Forms (For Ajax enabled and multi page form)
16
+ </li>
17
+
18
  <li><label>Record Spammer IP</label>
19
  Record spammers' IPs to block them from future submissions.
20
  </li>
includes/views/wpa_notice.php CHANGED
@@ -1,10 +1,17 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  add_action('admin_notices', 'wpa_reviews_notice');
 
 
 
4
  if (isset($_GET['wpa_reviews_notice_hide']) == 1){
5
  update_option('wpa_reviews_notice_hide','yes');
6
  }
7
 
 
 
 
 
8
  function wpa_reviews_notice(){
9
  if (get_option('wpa_reviews_notice_hide') != 'yes'){
10
  $installedDate = strtotime(get_option('wpa_installed_date'));
@@ -18,16 +25,40 @@ function wpa_reviews_notice(){
18
  echo '<div class="updated success" style="padding:10px; font-size:16px; line-height:1.6;color:#205225;">
19
  Hey, WP Armour Anti Spam has blocked <strong>'.$all_spam_blocked.'</strong> spam submissions till date - that’s awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress ? Just to help us spread the word and boost our motivation.<br/><br/>
20
 
21
- Also, you can support us on Patreon for its development and keep ahead of spammers. <a href="https://www.patreon.com/wparmour" target="_blank">https://www.patreon.com/wparmour</a>
22
-
23
  <ul style="padding-left:50px;list-style-type: square;">
24
  <li><a href="https://wordpress.org/support/plugin/honeypot/reviews/?filter=5" target="_blank">Ok, you deserve it</a></li>
25
  <li><a href="https://dineshkarki.com.np/contact" target="_blank">I still have problem !!</a></li>
26
  <li><a href="?wpa_reviews_notice_hide=1">I already did</a></li>
27
- <li><a href="https://www.patreon.com/wparmour" target="_blank">Support Us on Patreon</a></li>
28
  <li><a href="?wpa_reviews_notice_hide=1">Hide this message</a></li>
29
  </ul>
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  </div>';
32
  }
33
  }
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  add_action('admin_notices', 'wpa_reviews_notice');
4
+ add_action('admin_notices', 'wpa_extended_notice');
5
+
6
+
7
  if (isset($_GET['wpa_reviews_notice_hide']) == 1){
8
  update_option('wpa_reviews_notice_hide','yes');
9
  }
10
 
11
+ if (isset($_GET['wpa_extended_notice_hide']) == 1){
12
+ update_option('wpa_extended_notice_hide','yes');
13
+ }
14
+
15
  function wpa_reviews_notice(){
16
  if (get_option('wpa_reviews_notice_hide') != 'yes'){
17
  $installedDate = strtotime(get_option('wpa_installed_date'));
25
  echo '<div class="updated success" style="padding:10px; font-size:16px; line-height:1.6;color:#205225;">
26
  Hey, WP Armour Anti Spam has blocked <strong>'.$all_spam_blocked.'</strong> spam submissions till date - that’s awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress ? Just to help us spread the word and boost our motivation.<br/><br/>
27
 
 
 
28
  <ul style="padding-left:50px;list-style-type: square;">
29
  <li><a href="https://wordpress.org/support/plugin/honeypot/reviews/?filter=5" target="_blank">Ok, you deserve it</a></li>
30
  <li><a href="https://dineshkarki.com.np/contact" target="_blank">I still have problem !!</a></li>
31
  <li><a href="?wpa_reviews_notice_hide=1">I already did</a></li>
 
32
  <li><a href="?wpa_reviews_notice_hide=1">Hide this message</a></li>
33
  </ul>
34
 
35
+ </div>';
36
+ }
37
+ }
38
+ }
39
+
40
+ function wpa_extended_notice(){
41
+ if (get_option('wpa_extended_notice_hide') != 'yes' && !is_plugin_active('wp-armour-extended/wp-armour-extended.php') ){
42
+ $installedDate = strtotime(get_option('wpa_installed_date'));
43
+ $todayDate = time();
44
+ $installedDays = round(($todayDate - $installedDate) / (60 * 60 * 24));
45
+ $wpa_stats = json_decode(get_option('wpa_stats'),true);
46
+ $all_spam_blocked = $wpa_stats['total']['all_time'];
47
+
48
+
49
+ if ($installedDays > 90 && $all_spam_blocked > 1000){
50
+ echo '<div class="updated success" style="padding:10px; font-size:16px; line-height:1.6;color:#205225;">
51
+ Hey, WP Armour has blocked <strong>'.$all_spam_blocked.'</strong> spam submissions till date - that’s awesome!<br/><br/>
52
+
53
+ Can you help us by purchasing our Extended Version ? This will helps up maintain and support the plugin in upcoming days and make it even better. Our Extended version starts from 19.99 USD and comes with lifetime license (No monhtly or yearly recurring) and No API calls. <br/><br/>
54
+
55
+ Also, it works with WooCommerce, Ajax and Multi page Gravity Forms, Easy Digital Downloads, QuForm, MC4WP: Mailchimp for WordPress and have Spammer blocking based on IP, Record Spam Submission and so on.
56
+
57
+ <ul style="padding-left:50px;list-style-type: square;">
58
+ <li><a href="https://dineshkarki.com.np/buy-wp-armour-extended" target="_blank">I will help</a></li>
59
+ <li><a href="?wpa_extended_notice_hide=1">Hide this message</a></li>
60
+ </ul>
61
+
62
  </div>';
63
  }
64
  }
includes/views/wpa_sidebar.php CHANGED
@@ -34,7 +34,7 @@ ul.uaf_list{ list-style-type:square;margin-left: 2em;}
34
  <td>
35
  <ul class="uaf_list">
36
  <li><a href="https://wordpress.org/plugins/use-any-font/" target="_blank">Use Any Font</a></li>
37
- <li><a href="https://wordpress.org/plugins/wp-masonry-layout/" target="_blank">WP Masonry Layout</a></li>
38
  <li><a href="http://wordpress.org/extend/plugins/any-mobile-theme-switcher/" target="_blank">Any Mobile Theme Switcher</a></li>
39
  <li><a href="http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/" target="_blank">Jquery Validation For Contact Form 7</a></li>
40
  <li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
34
  <td>
35
  <ul class="uaf_list">
36
  <li><a href="https://wordpress.org/plugins/use-any-font/" target="_blank">Use Any Font</a></li>
37
+ <li><a href="https://dineshkarki.com.np/jquery-validation-for-gravity-forms" target="_blank">Jquery Validation For Gravity Form</a></li>
38
  <li><a href="http://wordpress.org/extend/plugins/any-mobile-theme-switcher/" target="_blank">Any Mobile Theme Switcher</a></li>
39
  <li><a href="http://wordpress.org/extend/plugins/jquery-validation-for-contact-form-7/" target="_blank">Jquery Validation For Contact Form 7</a></li>
40
  <li><a href="http://wordpress.org/extend/plugins/add-tags-and-category-to-page/" target="_blank">Add Tags And Category To Page</a></li>
includes/wpa_functions.php CHANGED
@@ -8,8 +8,8 @@ function wpa_load_scripts(){
8
  }
9
 
10
  echo '<script>var wpa_hidden_field = "'.$GLOBALS['wpa_hidden_field'].'"; var wpa_add_test = "'.$wpa_add_test.'";</script>';
11
- wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), 1.6, true);
12
- wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.6');
13
  }
14
 
15
  function wpa_plugin_menu(){
8
  }
9
 
10
  echo '<script>var wpa_hidden_field = "'.$GLOBALS['wpa_hidden_field'].'"; var wpa_add_test = "'.$wpa_add_test.'";</script>';
11
+ wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), 1.7, true);
12
+ wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.7');
13
  }
14
 
15
  function wpa_plugin_menu(){
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dnesscarkey
3
  Donate link: https://dineshkarki.com.np/wp-armour-anti-spam
4
  Tags: anti spam, spam checker, spam filter, gravity forms, contact form 7
5
  Requires at least: 3.0
6
- Tested up to: 5.6.1
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -23,7 +23,7 @@ As of now spam bots are unable to handle javascript and we exploit this point to
23
  * For BBPress Forum
24
  * For Contact Form 7
25
  * For Ninja Forms
26
- * For Gravity Forms
27
  * For WPForms
28
  * For Formidable Forms
29
  * For Caldera Forms
@@ -40,7 +40,7 @@ As of now spam bots are unable to handle javascript and we exploit this point to
40
  * Spam bots can't use javascript so we use javascript to insert honeypot anti spam field in the form and spam bots can't fill it to pass anti spam test.
41
  * Unique honeypot field name generated for each wordpress installation, so it is hard for spam bots to make one fit for all solution to bypass honeypot anti spam test.
42
  * No setup required. Just activate the plugin and it enables anti spam for all supported forms, comment and registration.
43
- * No API or monthly subscription needed like other plugins. Though we have <a title="WP Armour Extended - Anti Spam" href="https://dineshkarki.com.np/buy-wp-armour-extended">Premium extended version</a> of the plugin, it is not needed to block the spam.
44
 
45
  <strong>Support</strong>
46
 
@@ -49,6 +49,12 @@ If you have any issue, you can write to using <a title="WP Armour - Honeypot Ant
49
  <strong>WP Armour - Anti Spam Extended</strong>
50
 
51
  * For WooCommerce Checkout
 
 
 
 
 
 
52
  * Logs spam bot IPs.
53
  * Block spam bot IPs if multiple spam is submitted. Add extra level of anti spam filter based on IPs. Needed to stop spam bot using unwanted bandwidth and save valuable server resource.
54
  * View what spam bot are trying to submit, so that you are sure our plugin is blocking legit spam bots.
@@ -120,6 +126,10 @@ With WP Armour - Honeypot Anti Spam plugin it is No. But if you want you can use
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = = 1.6 =
124
  * Removed WooCommerce Support from Lite version due to complications.
125
  * Added option to disable Wp Armour Widget.
3
  Donate link: https://dineshkarki.com.np/wp-armour-anti-spam
4
  Tags: anti spam, spam checker, spam filter, gravity forms, contact form 7
5
  Requires at least: 3.0
6
+ Tested up to: 5.7
7
+ Stable tag: 1.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
23
  * For BBPress Forum
24
  * For Contact Form 7
25
  * For Ninja Forms
26
+ * For Gravity Forms (For Non Ajax and Single Page/Step Form)
27
  * For WPForms
28
  * For Formidable Forms
29
  * For Caldera Forms
40
  * Spam bots can't use javascript so we use javascript to insert honeypot anti spam field in the form and spam bots can't fill it to pass anti spam test.
41
  * Unique honeypot field name generated for each wordpress installation, so it is hard for spam bots to make one fit for all solution to bypass honeypot anti spam test.
42
  * No setup required. Just activate the plugin and it enables anti spam for all supported forms, comment and registration.
43
+ * No API or monthly subscription needed like other plugins. Though we have <a title="WP Armour Extended - Anti Spam" href="https://dineshkarki.com.np/buy-wp-armour-extended">Premium extended version</a> of the plugin for more support with one time lifetime license.
44
 
45
  <strong>Support</strong>
46
 
49
  <strong>WP Armour - Anti Spam Extended</strong>
50
 
51
  * For WooCommerce Checkout
52
+ * Easy Digital Downloads
53
+ * QuForm Contact Form
54
+ * Gravity Forms (For Ajax Based and Multi Step Forms)
55
+ * MC4WP: Mailchimp for WordPress
56
+ * S2 Members
57
+ * BuddyPress
58
  * Logs spam bot IPs.
59
  * Block spam bot IPs if multiple spam is submitted. Add extra level of anti spam filter based on IPs. Needed to stop spam bot using unwanted bandwidth and save valuable server resource.
60
  * View what spam bot are trying to submit, so that you are sure our plugin is blocking legit spam bots.
126
 
127
  == Changelog ==
128
 
129
+ = = 1.7 =
130
+ * Fixed Hide Notification issue.
131
+ * Tested with 5.7.
132
+
133
  = = 1.6 =
134
  * Removed WooCommerce Support from Lite version due to complications.
135
  * Added option to disable Wp Armour Widget.
wp-armour.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: WP Armour - Honeypot Anti Spam
5
  Plugin URI: http://wordpress.org/plugins/honeypot/
6
  Description: Add honeypot anti spam protection.
7
  Author: Dnesscarkey
8
- Version: 1.6
9
  Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
10
  */
11
 
5
  Plugin URI: http://wordpress.org/plugins/honeypot/
6
  Description: Add honeypot anti spam protection.
7
  Author: Dnesscarkey
8
+ Version: 1.7
9
  Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
10
  */
11