Can you include the IP address of the sender of the contact form to help identify if the inquiry is legitimate or not?
Hi there @Shaan
I see your point, but I’m not sure that we’ll be able to release such a complex use case, I’m afraid. Anyway, if this request gets more votes, we’ll try to consider this option in our future updates.
Many thanks for sharing your idea and welcome to the Community
Please release this feature. This is necessary for me. I got spammed
Hi there, @Dung_Tran
Thanks for sharing your feedback with us!
If more users support this idea, it might be considered in the future
As for now, you can enable reCAPTCHA as a spam protection step from bots. You can find this setting in the Spam Protection section on the Settings tabs:
This works for me and I think that is a solution
Insert following Code in Custom JS Editor
async function setClientIP() {
try {
// Get the client's public IP address
const response = await fetch('https://api.ipify.org?format=json');
const data = await response.json();
// Insert IP address into the variable
const clientIP = data.ip;
// Put the IP address in the widget field
widget.setFieldValue('[client-ip]', `IP: ${clientIP}`);
} catch (error) {
console.error('Error getting IP address:', error);
}
}
// call Funktion
setClientIP();
Add Field ID in Email Form
Insert [client-id] in the Emailtext or as already known use [form-data]
GDPR compliance must be observed and data economy must be applied.
@Max @Helga @Rena If that’s allowed, then I’ll take a like and solution mark.
@Sina thanks a lot for sharing your solution! It’s definitely a working solution, though there are a couple of important nuances:
-
Without a propper test, we now cannot evaluate how good the service you’re using in your JS code is, but it’s definitely working.
-
Since this code collects user data (IP addresses), questions of legitimacy arise. You’ll need to inform your clients that their IP addresses will be collected.
-
Lastly, all responsibility for applying this customization lies with our clients
Hi @Helga
shure. GDPR compliance must be observed and data economy must be applied.
regards sina