Version Description
- Added anti spam support for woocommerce.
- Added anti spam support for divi contact form.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | WP Armour – Honeypot Anti Spam |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- includes/integration/wpa_diviform.php +15 -0
- includes/integration/wpa_woocommerce.php +9 -0
- includes/js/wpa.js +4 -2
- readme.txt +10 -2
- screenshot-10.png +0 -0
- wp-armour.php +17 -12
includes/integration/wpa_diviform.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
foreach($_POST as $param => $value){
|
3 |
+
if(strpos($param, 'et_pb_contactform_submit') === 0){
|
4 |
+
$is_divi_form = 'true';
|
5 |
+
$divi_form_additional = str_replace('et_pb_contactform_submit', '', $param);
|
6 |
+
}
|
7 |
+
}
|
8 |
+
|
9 |
+
if(!empty($is_divi_form) && $is_divi_form == 'true'){
|
10 |
+
if (!isset($_POST[ $GLOBALS['wpa_field_name']] )){
|
11 |
+
do_action('wpa_handle_spammers','divi_form');
|
12 |
+
echo "<div id='et_pb_contact_form{$divi_form_additional}'><p>".$GLOBALS['wpa_error_message']."</p><div></div></div>";
|
13 |
+
die();
|
14 |
+
}
|
15 |
+
}
|
includes/integration/wpa_woocommerce.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
add_filter( 'woocommerce_registration_errors', 'wpa_woocommerce_extra_validation', 10, 3 );
|
3 |
+
|
4 |
+
function wpa_woocommerce_extra_validation( $errors, $username, $email ) {
|
5 |
+
if (!isset($_POST[ $GLOBALS['wpa_field_name']] )){
|
6 |
+
$errors->add( 'reg_email', $GLOBALS['wpa_error_message']);
|
7 |
+
}
|
8 |
+
return $errors;
|
9 |
+
}
|
includes/js/wpa.js
CHANGED
@@ -3,8 +3,7 @@ jQuery(document).ready(function(){
|
|
3 |
|
4 |
if (wpa_add_test == 'yes'){
|
5 |
wpa_add_test_block();
|
6 |
-
}
|
7 |
-
|
8 |
});
|
9 |
|
10 |
function wpa_act_as_spam(){
|
@@ -31,6 +30,9 @@ function wpa_add_honeypot_field(){
|
|
31 |
jQuery('.frm_forms form').append(wpa_hidden_field); // Formidible forms
|
32 |
jQuery('.caldera-grid form').append(wpa_hidden_field); // Caldera forms
|
33 |
jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
function wpa_add_test_block(){
|
3 |
|
4 |
if (wpa_add_test == 'yes'){
|
5 |
wpa_add_test_block();
|
6 |
+
}
|
|
|
7 |
});
|
8 |
|
9 |
function wpa_act_as_spam(){
|
30 |
jQuery('.frm_forms form').append(wpa_hidden_field); // Formidible forms
|
31 |
jQuery('.caldera-grid form').append(wpa_hidden_field); // Caldera forms
|
32 |
jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms
|
33 |
+
jQuery('form.et_pb_contact_form').append(wpa_hidden_field); // Divi Form
|
34 |
+
jQuery('form.woocommerce-form-register').append(wpa_hidden_field); // WooCommerce Registration
|
35 |
+
jQuery('form.woocommerce-checkout').append(wpa_hidden_field); // WooCommerce Checkout
|
36 |
}
|
37 |
|
38 |
function wpa_add_test_block(){
|
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.5.
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -28,6 +28,8 @@ As of now spam bots are unable to handle javascript and we exploit this point to
|
|
28 |
* For Formidable Forms
|
29 |
* For Caldera Forms
|
30 |
* For Toolset Forms
|
|
|
|
|
31 |
|
32 |
<strong>How our plugin is different than other honeypot anti spam plugins ? </strong>
|
33 |
|
@@ -55,6 +57,7 @@ You can get the WP Armour - Anti Spam Extended from <a title="WP Armour Extended
|
|
55 |
* <a target="_blank" href="http://wordpress.org/plugins/wp-masonry-layout/">WP Masonry Layout</a>
|
56 |
* <a target="_blank" href="http://wordpress.org/plugins/any-mobile-theme-switcher/">Any Mobile Theme Switcher</a>
|
57 |
* <a target="_blank" href="http://wordpress.org/plugins/jquery-validation-for-contact-form-7/">Jquery Validation For Contact Form 7</a>
|
|
|
58 |
* <a target="_blank" href="http://wordpress.org/plugins/add-tags-and-category-to-page/">Add Tags And Category To Page</a>
|
59 |
* <a target="_blank" href="http://wordpress.org/plugins/block-specific-plugin-updates/">Block Specific Plugin Updates</a>
|
60 |
* <a target="_blank" href="http://wordpress.org/plugins/featured-image-in-rss-feed/">Featured Image In RSS Feed</a>
|
@@ -110,9 +113,14 @@ With WP Armour - Honeypot Anti Spam plugin it is No. But if you want you can use
|
|
110 |
1. Screenshot #7. Honeypot for Comment ( anti spam filter enabled )
|
111 |
1. Screenshot #8. Honeypot for WPForms ( anti spam filter enabled )
|
112 |
1. Screenshot #9. Honeypot for Caldera Forms ( anti spam filter enabled )
|
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
116 |
= = 1.5.4 =
|
117 |
* Added anti spam statictic in Dashboard for Extended version users.
|
118 |
|
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.5.3
|
7 |
+
Stable tag: 1.5.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
28 |
* For Formidable Forms
|
29 |
* For Caldera Forms
|
30 |
* For Toolset Forms
|
31 |
+
* For Divi Theme Contact Form
|
32 |
+
* For WooCommerce registration and checkout
|
33 |
|
34 |
<strong>How our plugin is different than other honeypot anti spam plugins ? </strong>
|
35 |
|
57 |
* <a target="_blank" href="http://wordpress.org/plugins/wp-masonry-layout/">WP Masonry Layout</a>
|
58 |
* <a target="_blank" href="http://wordpress.org/plugins/any-mobile-theme-switcher/">Any Mobile Theme Switcher</a>
|
59 |
* <a target="_blank" href="http://wordpress.org/plugins/jquery-validation-for-contact-form-7/">Jquery Validation For Contact Form 7</a>
|
60 |
+
* <a target="_blank" href="https://dineshkarki.com.np/jquery-validation-for-gravity-forms">Jquery Validation For Gravity Forms</a>
|
61 |
* <a target="_blank" href="http://wordpress.org/plugins/add-tags-and-category-to-page/">Add Tags And Category To Page</a>
|
62 |
* <a target="_blank" href="http://wordpress.org/plugins/block-specific-plugin-updates/">Block Specific Plugin Updates</a>
|
63 |
* <a target="_blank" href="http://wordpress.org/plugins/featured-image-in-rss-feed/">Featured Image In RSS Feed</a>
|
113 |
1. Screenshot #7. Honeypot for Comment ( anti spam filter enabled )
|
114 |
1. Screenshot #8. Honeypot for WPForms ( anti spam filter enabled )
|
115 |
1. Screenshot #9. Honeypot for Caldera Forms ( anti spam filter enabled )
|
116 |
+
1. Screenshot #10. Honeypot for Divi Contact Forms ( anti spam filter enabled )
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= = 1.5.5 =
|
121 |
+
* Added anti spam support for woocommerce.
|
122 |
+
* Added anti spam support for divi contact form.
|
123 |
+
|
124 |
= = 1.5.4 =
|
125 |
* Added anti spam statictic in Dashboard for Extended version users.
|
126 |
|
screenshot-10.png
ADDED
Binary file
|
wp-armour.php
CHANGED
@@ -4,7 +4,7 @@ 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/wp-armour-anti-spam
|
9 |
*/
|
10 |
|
@@ -13,23 +13,28 @@ include 'includes/wpa_functions.php';
|
|
13 |
include 'includes/wpa_dashboard_widget.php';
|
14 |
include 'includes/views/wpa_notice.php';
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
|
28 |
add_action('wp_enqueue_scripts','wpa_load_scripts');
|
29 |
add_action('login_enqueue_scripts','wpa_load_scripts');
|
30 |
add_action('admin_menu', 'wpa_plugin_menu');
|
31 |
add_action( 'wpa_handle_spammers','wpa_save_stats',10,1);
|
32 |
|
|
|
33 |
register_activation_hook( __FILE__, 'wpa_plugin_activation' );
|
34 |
|
35 |
function wpa_plugin_activation(){
|
4 |
Plugin URI: http://wordpress.org/plugins/honeypot/
|
5 |
Description: Add honeypot anti spam protection.
|
6 |
Author: Dnesscarkey
|
7 |
+
Version: 1.5.5
|
8 |
Author URI: https://dineshkarki.com.np/wp-armour-anti-spam
|
9 |
*/
|
10 |
|
13 |
include 'includes/wpa_dashboard_widget.php';
|
14 |
include 'includes/views/wpa_notice.php';
|
15 |
|
16 |
+
add_action( 'init', function(){
|
17 |
+
if( !is_admin() ){ // ONLY BLOCK SPAM IF IT IS NOT ADMIN PANEL
|
18 |
+
include 'includes/integration/wpa_bbpress.php';
|
19 |
+
include 'includes/integration/wpa_wpcomment.php';
|
20 |
+
include 'includes/integration/wpa_wpregistration.php';
|
21 |
+
include 'includes/integration/wpa_contactform7.php';
|
22 |
+
include 'includes/integration/wpa_wpforms.php';
|
23 |
+
include 'includes/integration/wpa_gravityforms.php';
|
24 |
+
include 'includes/integration/wpa_formidable.php';
|
25 |
+
include 'includes/integration/wpa_calderaforms.php';
|
26 |
+
include 'includes/integration/wpa_toolsetform.php';
|
27 |
+
include 'includes/integration/wpa_diviform.php';
|
28 |
+
include 'includes/integration/wpa_woocommerce.php';
|
29 |
+
}
|
30 |
+
});
|
31 |
|
32 |
add_action('wp_enqueue_scripts','wpa_load_scripts');
|
33 |
add_action('login_enqueue_scripts','wpa_load_scripts');
|
34 |
add_action('admin_menu', 'wpa_plugin_menu');
|
35 |
add_action( 'wpa_handle_spammers','wpa_save_stats',10,1);
|
36 |
|
37 |
+
|
38 |
register_activation_hook( __FILE__, 'wpa_plugin_activation' );
|
39 |
|
40 |
function wpa_plugin_activation(){
|