Hello,
Is it possible to add, at the end of the email sent after a form validation, the IP address of the computer from which the form is sent ?
The aim is to blacklist some unwelcome visitors ...
Thanks😉
Is it possible to add, at the end of the email sent after a form validation, the IP address of the computer from which the form is sent ?
The aim is to blacklist some unwelcome visitors ...
Thanks😉
If you add a hidden field to your form and use php to get the user's IP address then it will be sent along with all of the other data when the form is submitted. This means it'll be available to include in emails along with all the other data
If you're using the form wizard, just add the following to the 'default value' section in the hidden field panel:
Bear in mind that there are ways of getting around this by using proxies.
Andy
If you're using the form wizard, just add the following to the 'default value' section in the hidden field panel:
<?php echo $_SERVER['REMOTE_ADDR']; ?>
Bear in mind that there are ways of getting around this by using proxies.
Andy
Thanks GreyHead but I don't see where I can set this option (I'm running Chrono contact v3.2).
Andy, thanks for the tip. Tested on my form, works well, nice !
Andy, thanks for the tip. Tested on my form, works well, nice !
This topic is locked and no more replies can be posted.