WP Armour – Honeypot Anti Spam - Version 1.5

Version Description

  • WP Armour Test Panel added in forms. Only visible for Admin.
Download this release

Release Info

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

Code changes from version 1.4 to 1.5

includes/css/wpa.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ .wpa-test-msg{background: #d1ecf1 !important; border: 1px solid #bee5eb !important; border-radius: 5px !important;color: #0c5460 !important; font-size: 14px !important; padding:.75rem 1.25rem !important; font-family: Arial !important; margin-top:5px !important;}
2
+ span.wpa-button{ display: inline-block !important; padding-top: 5px !important; color: #fff !important;background-color: #6c757d !important;border-color: #6c757d !important; padding: 5px 10px !important; border-radius: 5px !important; margin-top:5px !important; cursor: pointer !important; }
includes/integration/wpa_contactform7.php CHANGED
@@ -4,7 +4,7 @@ add_filter( 'wpcf7_validate', 'wpa_contactform7_extra_validation', 10, 2 );
4
  function wpa_contactform7_extra_validation($result, $tags){
5
  if (!isset($_POST[ $GLOBALS['wpa_field_name']] )){
6
  do_action('wpa_handle_spammers','contactform7');
7
- die($GLOBALS['wpa_error_message']);
8
  }
9
  return $result;
10
  }
4
  function wpa_contactform7_extra_validation($result, $tags){
5
  if (!isset($_POST[ $GLOBALS['wpa_field_name']] )){
6
  do_action('wpa_handle_spammers','contactform7');
7
+ $result->invalidate('', $GLOBALS['wpa_error_message']);
8
  }
9
  return $result;
10
  }
includes/js/wpa.js CHANGED
@@ -1,4 +1,26 @@
1
- jQuery(document).ready(function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  jQuery('.bbp-topic-form form').append(wpa_hidden_field); // BBPRESS TOPIC
3
  jQuery('.bbp-reply-form form').append(wpa_hidden_field); // BBPRESS REPLY
4
  jQuery('form#commentform').append(wpa_hidden_field); // WP COMMENT
@@ -7,4 +29,14 @@ jQuery(document).ready(function(){
7
  jQuery('form.wpforms-form').append(wpa_hidden_field); // WPFFORMS
8
  jQuery('.gform_wrapper form').append(wpa_hidden_field); // GRAVITY FORMS
9
  jQuery('.frm_forms form').append(wpa_hidden_field); // Formidible forms
10
- });
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ wpa_add_honeypot_field();
3
+
4
+ if (wpa_add_test == 'yes'){
5
+ wpa_add_test_block();
6
+ }
7
+
8
+ });
9
+
10
+ function wpa_act_as_spam(){
11
+ actiontype = jQuery('span.wpa-button').data('actiontype');
12
+ if (actiontype == 'remove'){
13
+ wpa_remove_honeypot_field();
14
+ jQuery('span.wpa-button').data('actiontype','add');
15
+ jQuery('span.wpa-button').html('Acting as Spam Bot');
16
+ } else {
17
+ wpa_add_honeypot_field();
18
+ jQuery('span.wpa-button').data('actiontype','remove');
19
+ jQuery('span.wpa-button').html('Act as Spam Bot');
20
+ }
21
+ }
22
+
23
+ function wpa_add_honeypot_field(){
24
  jQuery('.bbp-topic-form form').append(wpa_hidden_field); // BBPRESS TOPIC
25
  jQuery('.bbp-reply-form form').append(wpa_hidden_field); // BBPRESS REPLY
26
  jQuery('form#commentform').append(wpa_hidden_field); // WP COMMENT
29
  jQuery('form.wpforms-form').append(wpa_hidden_field); // WPFFORMS
30
  jQuery('.gform_wrapper form').append(wpa_hidden_field); // GRAVITY FORMS
31
  jQuery('.frm_forms form').append(wpa_hidden_field); // Formidible forms
32
+ }
33
+
34
+ function wpa_add_test_block(){
35
+ checkingTest = '<div class="wpa-test-msg"><strong>WP Armour ( Only visible for Site Administrator, Not visible for others )</strong><br />This form has honeypot trap enabled. If you want to act as spam bot for testing. Please click the button below. <br/><span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span></div>';
36
+
37
+ jQuery('span.wpa_hidden_field').after(checkingTest);
38
+ }
39
+
40
+ function wpa_remove_honeypot_field(){
41
+ jQuery('.wpa_hidden_field').remove();
42
+ }
includes/views/wpa_sidebar.php CHANGED
@@ -13,7 +13,7 @@ ul.uaf_list{ list-style-type:square;margin-left: 2em;}
13
  <tr>
14
  <td>
15
  <ul class="uaf_list">
16
- <li><a href=" https://dineshkarki.com.np/forums/forum/honeypot" target="_blank">Support Forum</a></li>
17
  <li><a href="https://www.facebook.com/Dnesscarkey-77553779916" target="_blank">Send Us Msg via Facebook</a></li>
18
  <li><a href="https://bit.ly/2CdkfqR" target="_blank">Get WP Armour Extended</a></li>
19
  </ul>
13
  <tr>
14
  <td>
15
  <ul class="uaf_list">
16
+ <li><a href="https://wordpress.org/support/plugin/honeypot/" target="_blank">Support Forum</a></li>
17
  <li><a href="https://www.facebook.com/Dnesscarkey-77553779916" target="_blank">Send Us Msg via Facebook</a></li>
18
  <li><a href="https://bit.ly/2CdkfqR" target="_blank">Get WP Armour Extended</a></li>
19
  </ul>
includes/wpa_config.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
 
3
- $GLOBALS['wpa_field_name'] = get_option('wpa_field_name');
4
- $GLOBALS['wpa_hidden_field'] = "<span style='display:none;height:0;width:0;'><input type='text' name='".$GLOBALS['wpa_field_name']."' value='1' style='' /></span>";
5
  $GLOBALS['wpa_error_message'] = get_option('wpa_error_message');
1
  <?php
2
 
3
+ $GLOBALS['wpa_field_name'] = get_option('wpa_field_name');
4
+ $GLOBALS['wpa_hidden_field'] = "<span class='wpa_hidden_field' style='display:none;height:0;width:0;'><input type='text' name='".$GLOBALS['wpa_field_name']."' value='1' /></span>";
5
  $GLOBALS['wpa_error_message'] = get_option('wpa_error_message');
includes/wpa_functions.php CHANGED
@@ -1,7 +1,15 @@
1
  <?php
2
  function wpa_load_scripts(){
3
- echo '<script>var wpa_hidden_field = "'.$GLOBALS['wpa_hidden_field'].'";</script>';
 
 
 
 
 
 
 
4
  wp_enqueue_script( 'wpascript', plugins_url( '/js/wpa.js', __FILE__ ), array ( 'jquery' ), 1.1, true);
 
5
  }
6
 
7
  function wpa_plugin_menu(){
1
  <?php
2
  function wpa_load_scripts(){
3
+
4
+ if (current_user_can('activate_plugins')){
5
+ $wpa_add_test = 'yes';
6
+ } else {
7
+ $wpa_add_test = 'no';
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.1, true);
12
+ wp_enqueue_style( 'wpa-css', plugins_url( '/css/wpa.css', __FILE__ ), array(), '1.1');
13
  }
14
 
15
  function wpa_plugin_menu(){
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
- === WP Armour - Honeypot Anti Spam Plugin ===
2
  Contributors: dnesscarkey
3
  Tags: honeypot, block spam, gravity forms, bbpress, contact form 7
4
  Requires at least: 3.0
5
  Tested up to: 5.4.2
6
- Stable tag: 1.4
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Uses honeypot trap to block spam bots effectively in Contact Form 7, Gravity Forms, Ninja Forms, Formidable Forms, Comments, Registration, BBPress Forums.
11
 
12
  == Description ==
13
  This plugins block spammer submissions using honeypot technic. No Captcha or extra verification field hassle to the users. Only lets spam bots to suffer using honeypot fields.
@@ -24,7 +24,7 @@ As of now spam bots are unable to handle javascript and we exploit this point to
24
  * For Contact Form 7
25
  * For Ninja Forms
26
  * For Gravity Forms
27
- * For WP Forms
28
  * For Formidable Forms
29
 
30
  <strong>How our plugin is different than other honeypot plugins ? </strong>
@@ -35,7 +35,7 @@ As of now spam bots are unable to handle javascript and we exploit this point to
35
 
36
  <strong>Support</strong>
37
 
38
- If you have any issue, you can write to using our <a href="https://dineshkarki.com.np/forums/forum/wp-armour-honeypot-anti-spam" target="_blank">support forum.</a>
39
 
40
  <strong>Our other plugins</strong>
41
 
@@ -62,7 +62,7 @@ We have used the honeypot technic differently in this plugin to make it work bet
62
 
63
  = Will it block all the spam submission ? =
64
 
65
- Spam submission are either created by spam bots or by manual submission from users. Honeypot trap is for spam bots only. So there won't be submission from spam bots.
66
 
67
  = Forms i am using is not supported. Can you help ? =
68
 
@@ -70,15 +70,11 @@ Ya, Please write to us using <a href="https://dineshkarki.com.np/forums/forum/wp
70
 
71
  = How can i verify that honeypot is working in my forms ? =
72
 
73
- Honeypot is a trap for spam bots, so it is not visible for users. However, you can disable javascript (almost all spam bots don't use javascript) and check if spam bots are being blocked or not.
74
-
75
- = How can i verify that honeypot is working in my forms ? =
76
-
77
- Honeypot is a trap for spam bots, so it is not visible for users. However, you can disable javascript (almost all spam bots don't use javascript) and check if spam bots are being blocked or not.
78
 
79
  = Do i need Captcha verification ? =
80
 
81
- No, with this plugin you don't need Captcha. Lets avoid hassle for common users.
82
 
83
  = I am already using reCaptcha but still getting spam. Can this plugin stop spammers ? =
84
 
@@ -94,10 +90,19 @@ With WP Armour - Honeypot Anti Spam plugin it is No. But if you want you can ext
94
 
95
  == Screenshots ==
96
 
97
- 1. Screenshot #1. WP Armour - Honeypot Anti Spam Settings.
98
- 1. Screenshot #2. WP Armour - Honeypot Anti Spam Statistics.
 
 
 
 
 
 
99
 
100
  == Changelog ==
 
 
 
101
  = = 1.4 =
102
  * Added support for Formidable Forms
103
  * Added honeypot spam statistics
1
+ === WP Armour - Honeypot Anti Spam ===
2
  Contributors: dnesscarkey
3
  Tags: honeypot, block spam, gravity forms, bbpress, contact form 7
4
  Requires at least: 3.0
5
  Tested up to: 5.4.2
6
+ Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Uses honeypot to block spam bots including Russian spam in Contact Form 7, Gravity Forms, Ninja Forms, Formidable Forms, Comments, Registration, BBPress Forums.
11
 
12
  == Description ==
13
  This plugins block spammer submissions using honeypot technic. No Captcha or extra verification field hassle to the users. Only lets spam bots to suffer using honeypot fields.
24
  * For Contact Form 7
25
  * For Ninja Forms
26
  * For Gravity Forms
27
+ * For WPForms
28
  * For Formidable Forms
29
 
30
  <strong>How our plugin is different than other honeypot plugins ? </strong>
35
 
36
  <strong>Support</strong>
37
 
38
+ If you have any issue, you can write to using <a title="WP Armour - Honeypot Anti Spam " href="https://wordpress.org/support/plugin/honeypot/" target="_blank">support forum.</a>
39
 
40
  <strong>Our other plugins</strong>
41
 
62
 
63
  = Will it block all the spam submission ? =
64
 
65
+ Spam submission are either created by spam bots or by manual submission from users. Honeypot trap is for spam bots only. So there won't be submission from spam bots. And ya, it can block russian spam, chinese spam effectively.
66
 
67
  = Forms i am using is not supported. Can you help ? =
68
 
70
 
71
  = How can i verify that honeypot is working in my forms ? =
72
 
73
+ Honeypot is a trap for spam bots, so it is not visible for users. However, if you are logged in as Administrator, WP Armour Test widget is show below the form. This will confirm Honeypot anti spam is active in that form. And also allows you to test it as spam bot.
 
 
 
 
74
 
75
  = Do i need Captcha verification ? =
76
 
77
+ No, with this plugin you don't need Captcha, reCaptcha or Invisble Captcha at all. Lets avoid hassle for common users.
78
 
79
  = I am already using reCaptcha but still getting spam. Can this plugin stop spammers ? =
80
 
90
 
91
  == Screenshots ==
92
 
93
+ 1. Screenshot #1. WP Armour - Honeypot Anti Spam Settings
94
+ 1. Screenshot #2. WP Armour - Honeypot Anti Spam Statistics
95
+ 1. Screenshot #3. Honeypot for Contact Form 7
96
+ 1. Screenshot #4. Honeypot for Formidable Forms
97
+ 1. Screenshot #5. Honeypot for Gravity Forms
98
+ 1. Screenshot #6. Honeypot for BBpress Wordpress Forum
99
+ 1. Screenshot #7. Honeypot for Comment
100
+ 1. Screenshot #8. Honeypot for WPForms
101
 
102
  == Changelog ==
103
+ = = 1.5 =
104
+ * WP Armour Test Panel added in forms. Only visible for Admin.
105
+
106
  = = 1.4 =
107
  * Added support for Formidable Forms
108
  * Added honeypot spam statistics
screenshot-2.png CHANGED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
screenshot-6.png ADDED
Binary file
screenshot-7.png ADDED
Binary file
screenshot-8.png ADDED
Binary file
wp-armour.php CHANGED
@@ -2,9 +2,9 @@
2
  /*
3
  Plugin Name: WP Armour - Honeypot Anti Spam
4
  Plugin URI: http://wordpress.org/plugins/honeypot/
5
- Description: Add Honey Pot spam protection.
6
- Author: Dinesh Karki
7
- Version: 1.4
8
  Author URI: https://dineshkarki.com.np
9
  */
10
 
2
  /*
3
  Plugin Name: WP Armour - Honeypot Anti Spam
4
  Plugin URI: http://wordpress.org/plugins/honeypot/
5
+ Description: Add honeypot anti spam protection.
6
+ Author: Dnesscarkey
7
+ Version: 1.5
8
  Author URI: https://dineshkarki.com.np
9
  */
10