]> _ Git - couzy.git/commitdiff
wait #7841 @1:00
authorsoufiane <soufiane@cubedesigners.com>
Thu, 20 Nov 2025 14:26:52 +0000 (15:26 +0100)
committersoufiane <soufiane@cubedesigners.com>
Thu, 20 Nov 2025 14:26:52 +0000 (15:26 +0100)
cesaretleonie.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php [new file with mode: 0644]
mdryvescouzy.com/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php [new file with mode: 0644]
pavillonmadeleine.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php [new file with mode: 0644]

diff --git a/cesaretleonie.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php b/cesaretleonie.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php
new file mode 100644 (file)
index 0000000..d9c41e2
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * Plugin Name: Honeypot for Mailjet
+ * Version: 1.0
+ */
+
+add_action('wp_ajax_nopriv_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+add_action('wp_ajax_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+
+function honeypot_mailjet()
+{
+    if (!empty($_POST['hp_mailjet'])) {
+        wp_send_json_error(['message' => 'spam']);
+        wp_die();
+    }
+}
+
+add_action('wp_footer', function() {
+?>
+<script>
+    document.addEventListener("DOMContentLoaded", function() {
+        const form = document.querySelector("#wp_mailjet_subscribe_widget-2 form");
+        if (!form.querySelector('input[name="hp_mailjet"]')) {
+            let hp = document.createElement("input");
+            hp.type = "text";
+            hp.name = "hp_mailjet";
+            hp.style.display = "none";
+            form.appendChild(hp);
+        }
+    });
+</script>
+<?php
+});
\ No newline at end of file
diff --git a/mdryvescouzy.com/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php b/mdryvescouzy.com/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php
new file mode 100644 (file)
index 0000000..d9c41e2
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * Plugin Name: Honeypot for Mailjet
+ * Version: 1.0
+ */
+
+add_action('wp_ajax_nopriv_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+add_action('wp_ajax_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+
+function honeypot_mailjet()
+{
+    if (!empty($_POST['hp_mailjet'])) {
+        wp_send_json_error(['message' => 'spam']);
+        wp_die();
+    }
+}
+
+add_action('wp_footer', function() {
+?>
+<script>
+    document.addEventListener("DOMContentLoaded", function() {
+        const form = document.querySelector("#wp_mailjet_subscribe_widget-2 form");
+        if (!form.querySelector('input[name="hp_mailjet"]')) {
+            let hp = document.createElement("input");
+            hp.type = "text";
+            hp.name = "hp_mailjet";
+            hp.style.display = "none";
+            form.appendChild(hp);
+        }
+    });
+</script>
+<?php
+});
\ No newline at end of file
diff --git a/pavillonmadeleine.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php b/pavillonmadeleine.fr/wp-content/plugins/honeypot-mailjet/honeypot-mailjet.php
new file mode 100644 (file)
index 0000000..d9c41e2
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * Plugin Name: Honeypot for Mailjet
+ * Version: 1.0
+ */
+
+add_action('wp_ajax_nopriv_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+add_action('wp_ajax_mailjet_subscribe_ajax_hook', 'honeypot_mailjet', 1);
+
+function honeypot_mailjet()
+{
+    if (!empty($_POST['hp_mailjet'])) {
+        wp_send_json_error(['message' => 'spam']);
+        wp_die();
+    }
+}
+
+add_action('wp_footer', function() {
+?>
+<script>
+    document.addEventListener("DOMContentLoaded", function() {
+        const form = document.querySelector("#wp_mailjet_subscribe_widget-2 form");
+        if (!form.querySelector('input[name="hp_mailjet"]')) {
+            let hp = document.createElement("input");
+            hp.type = "text";
+            hp.name = "hp_mailjet";
+            hp.style.display = "none";
+            form.appendChild(hp);
+        }
+    });
+</script>
+<?php
+});
\ No newline at end of file