by ZBrain | May 5, 2023 | AI Applications, AI Use Cases
← All Insights Even though Artificial Intelligence (AI) has been around as an academic and scientific discipline since the 1950s, AI technology has gained a lot of traction in the last few years. It’s needless to mention that the current surge in AI research,...Book a Demo
with Our AI Experts!
const form = document.getElementById("adform"); const startField = document.getElementById("form_start_time");
startField.value = Date.now();
form.addEventListener("submit", function(e){
const honeypot = document.querySelector("input[name='website']").value; const startTime = startField.value; const now = Date.now();
/* Honeypot spam detection */ if(honeypot !== ""){ e.preventDefault(); return false; }
/* Time trap (bots submit instantly) */ if((now - startTime) < 4000){ e.preventDefault(); alert("Submission blocked. Please try again."); } });
This website uses cookies to personalize content, analyze our traffic and enhance your experience.
For information on what cookies, we use visit our cookie policy. For information on how we utilize personal information that we collect, please see our privacy statement.